blob: fcbd2227407f4184e6f63f66dd0a13cb95f9384f [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
#define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_
#include "sync/internal_api/public/base/model_type.h"
class ProfileSyncService;
namespace fake_server {
class FakeServer;
} // namespace fake_server
namespace sync_integration_test_util {
// Wait until the provided |service| is blocked waiting for a passphrase.
bool AwaitPassphraseRequired(ProfileSyncService* service);
// Wait until the provided |service| has accepted the new passphrase.
bool AwaitPassphraseAccepted(ProfileSyncService* service);
// Wait until the |service| is fully synced.
// This can be a bit flaky. See UpdatedProgressMarkerChecker for details.
bool AwaitCommitActivityCompletion(ProfileSyncService* service);
// Wait until the fake server has a specific count for the given type.
bool AwaitServerCount(syncer::ModelType type, size_t count);
} // namespace sync_integration_test_util
#endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_INTEGRATION_TEST_UTIL_H_