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

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

Issue 2662453008: [Sync] Fix sync lint errors/includes, update presubmit. (Closed)
Patch Set: Rebase Created 3 years, 10 months 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 <string>
8
9 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
10 #include "chrome/browser/sync/test/integration/fake_server_match_status_checker. h"
11 #include "components/browser_sync/profile_sync_service.h" 8 #include "components/browser_sync/profile_sync_service.h"
12 9
13 ServerCountMatchStatusChecker::ServerCountMatchStatusChecker( 10 ServerCountMatchStatusChecker::ServerCountMatchStatusChecker(
14 syncer::ModelType type, 11 syncer::ModelType type,
15 size_t count) 12 size_t count)
16 : type_(type), count_(count) {} 13 : type_(type), count_(count) {}
17 14
18 bool ServerCountMatchStatusChecker::IsExitConditionSatisfied() { 15 bool ServerCountMatchStatusChecker::IsExitConditionSatisfied() {
19 return count_ == fake_server()->GetSyncEntitiesByModelType(type_).size(); 16 return count_ == fake_server()->GetSyncEntitiesByModelType(type_).size();
20 } 17 }
(...skipping 23 matching lines...) Expand all
44 : SingleClientStatusChangeChecker(service) {} 41 : SingleClientStatusChangeChecker(service) {}
45 42
46 bool PassphraseAcceptedChecker::IsExitConditionSatisfied() { 43 bool PassphraseAcceptedChecker::IsExitConditionSatisfied() {
47 return !service()->IsPassphraseRequired() && 44 return !service()->IsPassphraseRequired() &&
48 service()->IsUsingSecondaryPassphrase(); 45 service()->IsUsingSecondaryPassphrase();
49 } 46 }
50 47
51 std::string PassphraseAcceptedChecker::GetDebugMessage() const { 48 std::string PassphraseAcceptedChecker::GetDebugMessage() const {
52 return "Passhrase Accepted"; 49 return "Passhrase Accepted";
53 } 50 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/passwords_helper.cc ('k') | chrome/browser/ui/sync/browser_synced_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698