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