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