#include <memory>
#include <vector>
#include "base/containers/circular_deque.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/test/integration/bookmarks_helper.h"
#include "chrome/browser/sync/test/integration/migration_waiter.h"
#include "chrome/browser/sync/test/integration/migration_watcher.h"
#include "chrome/browser/sync/test/integration/preferences_helper.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "chrome/common/pref_names.h"
#include "components/sync/base/features.h"
#include "components/sync/service/sync_service_impl.h"
#include "content/public/test/browser_test.h"
AddURL;
IndexedURL;
IndexedURLTitle;
BooleanPrefMatches;
ChangeBooleanPref;
namespace {
syncer::DataTypeSet MakeSet(syncer::DataType type) { … }
syncer::DataTypeSet MakeSet(syncer::DataType type1, syncer::DataType type2) { … }
MigrationList;
MigrationList MakeList(syncer::DataTypeSet data_types) { … }
MigrationList MakeList(syncer::DataTypeSet data_types1,
syncer::DataTypeSet data_types2) { … }
MigrationList MakeList(syncer::DataType type) { … }
MigrationList MakeList(syncer::DataType type1, syncer::DataType type2) { … }
class MigrationTest : public SyncTest { … };
class MigrationSingleClientTest : public MigrationTest { … };
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest, PrefsOnlyModifyPref) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest, PrefsOnlyModifyBookmark) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest, PrefsOnlyTriggerRefresh) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest, NigoriOnly) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest, BookmarksPrefsIndividually) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest, BookmarksPrefsBoth) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest, PrefsNigoriIndividiaully) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest, PrefsNigoriBoth) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest, AllTypesIndividually) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest,
AllTypesIndividuallyTriggerRefresh) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest, AllTypesAtOnce) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest,
AllTypesAtOnceTriggerRefresh) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest,
AllTypesWithNigoriIndividually) { … }
IN_PROC_BROWSER_TEST_F(MigrationSingleClientTest, AllTypesWithNigoriAtOnce) { … }
class MigrationTwoClientTest : public MigrationTest { … };
IN_PROC_BROWSER_TEST_F(MigrationTwoClientTest, MigratePrefsThenModifyBookmark) { … }
IN_PROC_BROWSER_TEST_F(MigrationTwoClientTest,
MigratePrefsAndBookmarksThenModifyBookmark) { … }
IN_PROC_BROWSER_TEST_F(MigrationTwoClientTest, MigrationHellWithoutNigori) { … }
IN_PROC_BROWSER_TEST_F(MigrationTwoClientTest, MigrationHellWithNigori) { … }
}