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

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

Issue 2551023006: [Sync] SyncEngine 1.5: Fix all backend references in PSS. (Closed)
Patch Set: Fix Android. Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PROFILE_SYNC_SERVICE_HARNESS_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 bool AwaitGroupSyncCycleCompletion( 75 bool AwaitGroupSyncCycleCompletion(
76 const std::vector<ProfileSyncServiceHarness*>& partners); 76 const std::vector<ProfileSyncServiceHarness*>& partners);
77 77
78 // Blocks the caller until every client in |clients| completes its ongoing 78 // Blocks the caller until every client in |clients| completes its ongoing
79 // sync cycle and all the clients' progress markers match. Note: Use this 79 // sync cycle and all the clients' progress markers match. Note: Use this
80 // method when more than one client makes local change(s), and more than one 80 // method when more than one client makes local change(s), and more than one
81 // client is waiting to receive those changes. 81 // client is waiting to receive those changes.
82 static bool AwaitQuiescence( 82 static bool AwaitQuiescence(
83 const std::vector<ProfileSyncServiceHarness*>& clients); 83 const std::vector<ProfileSyncServiceHarness*>& clients);
84 84
85 // Blocks the caller until the sync backend is initialized or some end state 85 // Blocks the caller until the sync engine is initialized or some end state
86 // (e.g., auth error) is reached. Returns true if and only if the backend 86 // (e.g., auth error) is reached. Returns true if and only if the engine
87 // initialized successfully. See ProfileSyncService's IsBackendInitialized() 87 // initialized successfully. See ProfileSyncService's IsEngineInitialized()
88 // method for the definition of backend initialization. 88 // method for the definition of engine initialization.
89 bool AwaitBackendInitialization(); 89 bool AwaitEngineInitialization();
90 90
91 // Blocks the caller until sync setup is complete. Returns true if and only 91 // Blocks the caller until sync setup is complete. Returns true if and only
92 // if sync setup completed successfully. See syncer::SyncService's 92 // if sync setup completed successfully. See syncer::SyncService's
93 // IsSyncActive() method for the definition of what successful means here. 93 // IsSyncActive() method for the definition of what successful means here.
94 bool AwaitSyncSetupCompletion(); 94 bool AwaitSyncSetupCompletion();
95 95
96 // Returns the ProfileSyncService member of the sync client. 96 // Returns the ProfileSyncService member of the sync client.
97 browser_sync::ProfileSyncService* service() const { return service_; } 97 browser_sync::ProfileSyncService* service() const { return service_; }
98 98
99 // Returns the debug name for this profile. Used for logging. 99 // Returns the debug name for this profile. Used for logging.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // all refresh tokens used in the tests are different. 162 // all refresh tokens used in the tests are different.
163 int oauth2_refesh_token_number_; 163 int oauth2_refesh_token_number_;
164 164
165 // Used for logging. 165 // Used for logging.
166 const std::string profile_debug_name_; 166 const std::string profile_debug_name_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness); 168 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness);
169 }; 169 };
170 170
171 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_ 171 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PROFILE_SYNC_SERVICE_HARNESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698