Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: chrome/browser/sync/test/integration/migration_waiter.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WAITER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WAITER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WAITER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WAITER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/sync/test/integration/status_change_checker.h" 9 #include "chrome/browser/sync/test/integration/status_change_checker.h"
10 #include "sync/internal_api/public/base/model_type.h" 10 #include "components/sync/base/model_type.h"
11 11
12 class MigrationWatcher; 12 class MigrationWatcher;
13 13
14 // Helper class that checks if the sync backend has successfully completed 14 // Helper class that checks if the sync backend has successfully completed
15 // migration for a set of data types. 15 // migration for a set of data types.
16 // 16 //
17 // Collaborates with the MigrationWatcher, defined above. 17 // Collaborates with the MigrationWatcher, defined above.
18 class MigrationWaiter : public StatusChangeChecker { 18 class MigrationWaiter : public StatusChangeChecker {
19 public: 19 public:
20 // Initialize a waiter that will wait until |watcher|'s migrated types 20 // Initialize a waiter that will wait until |watcher|'s migrated types
(...skipping 17 matching lines...) Expand all
38 // The MigrationWatcher we're observering. 38 // The MigrationWatcher we're observering.
39 MigrationWatcher* const watcher_; 39 MigrationWatcher* const watcher_;
40 40
41 // The set of data types that are expected to eventually undergo migration. 41 // The set of data types that are expected to eventually undergo migration.
42 const syncer::ModelTypeSet expected_types_; 42 const syncer::ModelTypeSet expected_types_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(MigrationWaiter); 44 DISALLOW_COPY_AND_ASSIGN(MigrationWaiter);
45 }; 45 };
46 46
47 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WAITER_H_ 47 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_MIGRATION_WAITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698