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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
8 class ProfileSyncService
;
10 namespace sync_integration_test_util
{
12 // Wait until the provided |service| is blocked waiting for a passphrase.
13 bool AwaitPassphraseRequired(ProfileSyncService
* service
);
15 // Wait until the provided |service| has accepted the new passphrase.
16 bool AwaitPassphraseAccepted(ProfileSyncService
* service
);
18 // Wait until the |service| is fully synced.
19 // This can be a bit flaky. See UpdatedProgressMarkerChecker for details.
20 bool AwaitCommitActivityCompletion(ProfileSyncService
* service
);
22 } // namespace sync_integration_test_util
24 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_