#include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "chrome/common/pref_names.h"
-#include "chrome/test/base/ui_test_utils.h"
#include "components/translate/core/browser/translate_prefs.h"
using bookmarks_helper::AddURL;
class MigrationTest : public SyncTest {
public:
explicit MigrationTest(TestType test_type) : SyncTest(test_type) {}
- virtual ~MigrationTest() {}
+ ~MigrationTest() override {}
enum TriggerMethod { MODIFY_PREF, MODIFY_BOOKMARK, TRIGGER_NOTIFICATION };
// Set up sync for all profiles and initialize all MigrationWatchers. This
// helps ensure that all migration events are captured, even if they were to
// occur before a test calls AwaitMigration for a specific profile.
- virtual bool SetupSync() OVERRIDE {
+ bool SetupSync() override {
if (!SyncTest::SetupSync())
return false;
class MigrationSingleClientTest : public MigrationTest {
public:
MigrationSingleClientTest() : MigrationTest(SINGLE_CLIENT_LEGACY) {}
- virtual ~MigrationSingleClientTest() {}
+ ~MigrationSingleClientTest() override {}
void RunSingleClientMigrationTest(const MigrationList& migration_list,
TriggerMethod trigger_method) {
}
// The whole shebang -- all data types.
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_MACOSX)
// http://crbug.com/403778
#define MAYBE_AllTypesIndividually DISABLED_AllTypesIndividually
#else
RunSingleClientMigrationTest(GetPreferredDataTypesList(), MODIFY_BOOKMARK);
}
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_MACOSX)
// http://crbug.com/403778
#define MAYBE_AllTypesIndividuallyTriggerNotification DISABLED_AllTypesIndividuallyTriggerNotification
#else
class MigrationTwoClientTest : public MigrationTest {
public:
MigrationTwoClientTest() : MigrationTest(TWO_CLIENT_LEGACY) {}
- virtual ~MigrationTwoClientTest() {}
+ ~MigrationTwoClientTest() override {}
// Helper function that verifies that preferences sync still works.
void VerifyPrefSync() {
public:
MigrationReconfigureTest() {}
- virtual void SetUpCommandLine(base::CommandLine* cl) OVERRIDE {
+ void SetUpCommandLine(base::CommandLine* cl) override {
AddTestSwitches(cl);
// Do not add optional datatypes.
}
- virtual ~MigrationReconfigureTest() {}
+ ~MigrationReconfigureTest() override {}
private:
DISALLOW_COPY_AND_ASSIGN(MigrationReconfigureTest);