| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |