This source file includes following definitions.
- IN_PROC_BROWSER_TEST_F
#include "base/strings/stringprintf.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/test/integration/bookmarks_helper.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
using bookmarks_helper::AddURL;
using bookmarks_helper::AllModelsMatch;
class MultipleClientBookmarksSyncTest : public SyncTest {
public:
MultipleClientBookmarksSyncTest() : SyncTest(MULTIPLE_CLIENT) {}
virtual ~MultipleClientBookmarksSyncTest() {}
private:
DISALLOW_COPY_AND_ASSIGN(MultipleClientBookmarksSyncTest);
};
IN_PROC_BROWSER_TEST_F(MultipleClientBookmarksSyncTest, Sanity) {
ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
DisableVerifier();
for (int i = 0; i < num_clients(); ++i) {
ASSERT_TRUE(AddURL(i, base::StringPrintf(L"Google URL %d", i),
GURL(base::StringPrintf("http://www.google.com/%d", i))) != NULL);
}
ASSERT_TRUE(AwaitQuiescence());
ASSERT_TRUE(AllModelsMatch());
}