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

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

Issue 2148293004: [Sync] //components/sync external changes [DO NOT SUBMIT] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sc-1
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_SYNC_INTEGRATION_TEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
7 7
8 #include "sync/internal_api/public/base/model_type.h" 8 #include "components/sync/base/model_type.h"
9 9
10 class ProfileSyncService; 10 class ProfileSyncService;
11 11
12 namespace fake_server { 12 namespace fake_server {
13 class FakeServer; 13 class FakeServer;
14 } // namespace fake_server 14 } // namespace fake_server
15 15
16 namespace sync_integration_test_util { 16 namespace sync_integration_test_util {
17 17
18 // Wait until the provided |service| is blocked waiting for a passphrase. 18 // Wait until the provided |service| is blocked waiting for a passphrase.
19 bool AwaitPassphraseRequired(ProfileSyncService* service); 19 bool AwaitPassphraseRequired(ProfileSyncService* service);
20 20
21 // Wait until the provided |service| has accepted the new passphrase. 21 // Wait until the provided |service| has accepted the new passphrase.
22 bool AwaitPassphraseAccepted(ProfileSyncService* service); 22 bool AwaitPassphraseAccepted(ProfileSyncService* service);
23 23
24 // Wait until the |service| is fully synced. 24 // Wait until the |service| is fully synced.
25 // This can be a bit flaky. See UpdatedProgressMarkerChecker for details. 25 // This can be a bit flaky. See UpdatedProgressMarkerChecker for details.
26 bool AwaitCommitActivityCompletion(ProfileSyncService* service); 26 bool AwaitCommitActivityCompletion(ProfileSyncService* service);
27 27
28 // Wait until the fake server has a specific count for the given type. 28 // Wait until the fake server has a specific count for the given type.
29 bool AwaitServerCount(syncer::ModelType type, size_t count); 29 bool AwaitServerCount(syncer::ModelType type, size_t count);
30 30
31 } // namespace sync_integration_test_util 31 } // namespace sync_integration_test_util
32 32
33 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_ 33 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698