Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 backend is initialized or some end state |
|
skym
2016/12/05 19:38:56
backend
maxbogue
2016/12/05 22:17:11
Done.
| |
| 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 backend |
|
skym
2016/12/05 19:38:56
backend
maxbogue
2016/12/05 22:17:11
Done.
| |
| 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 backend initialization. |
|
skym
2016/12/05 19:38:56
backend
maxbogue
2016/12/05 22:17:11
Done.
| |
| 89 bool AwaitBackendInitialization(); | 89 bool AwaitBackendInitialization(); |
|
skym
2016/12/05 19:38:56
backend
maxbogue
2016/12/05 22:17:11
Done.
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |