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

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

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Created 5 years, 1 month 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 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" 5 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
6 6
7 #include "chrome/browser/sync/profile_sync_service.h"
8 #include "chrome/browser/sync/test/integration/single_client_status_change_check er.h" 7 #include "chrome/browser/sync/test/integration/single_client_status_change_check er.h"
9 #include "chrome/browser/sync/test/integration/updated_progress_marker_checker.h " 8 #include "chrome/browser/sync/test/integration/updated_progress_marker_checker.h "
9 #include "components/browser_sync/browser/profile_sync_service.h"
10 10
11 namespace sync_integration_test_util { 11 namespace sync_integration_test_util {
12 12
13 class PassphraseRequiredChecker : public SingleClientStatusChangeChecker { 13 class PassphraseRequiredChecker : public SingleClientStatusChangeChecker {
14 public: 14 public:
15 explicit PassphraseRequiredChecker(ProfileSyncService* service) 15 explicit PassphraseRequiredChecker(ProfileSyncService* service)
16 : SingleClientStatusChangeChecker(service) {} 16 : SingleClientStatusChangeChecker(service) {}
17 17
18 bool IsExitConditionSatisfied() override { 18 bool IsExitConditionSatisfied() override {
19 return service()->IsPassphraseRequired(); 19 return service()->IsPassphraseRequired();
(...skipping 27 matching lines...) Expand all
47 return !checker.TimedOut(); 47 return !checker.TimedOut();
48 } 48 }
49 49
50 bool AwaitCommitActivityCompletion(ProfileSyncService* service) { 50 bool AwaitCommitActivityCompletion(ProfileSyncService* service) {
51 UpdatedProgressMarkerChecker checker(service); 51 UpdatedProgressMarkerChecker checker(service);
52 checker.Wait(); 52 checker.Wait();
53 return !checker.TimedOut(); 53 return !checker.TimedOut();
54 } 54 }
55 55
56 } // namespace sync_integration_test_util 56 } // namespace sync_integration_test_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698