| 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 |
| 7 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "chrome/browser/sync/test/integration/fake_server_match_status_checker.
h" |
| 8 #include "components/browser_sync/profile_sync_service.h" | 11 #include "components/browser_sync/profile_sync_service.h" |
| 9 | 12 |
| 10 ServerCountMatchStatusChecker::ServerCountMatchStatusChecker( | 13 ServerCountMatchStatusChecker::ServerCountMatchStatusChecker( |
| 11 syncer::ModelType type, | 14 syncer::ModelType type, |
| 12 size_t count) | 15 size_t count) |
| 13 : type_(type), count_(count) {} | 16 : type_(type), count_(count) {} |
| 14 | 17 |
| 15 bool ServerCountMatchStatusChecker::IsExitConditionSatisfied() { | 18 bool ServerCountMatchStatusChecker::IsExitConditionSatisfied() { |
| 16 return count_ == fake_server()->GetSyncEntitiesByModelType(type_).size(); | 19 return count_ == fake_server()->GetSyncEntitiesByModelType(type_).size(); |
| 17 } | 20 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 41 : SingleClientStatusChangeChecker(service) {} | 44 : SingleClientStatusChangeChecker(service) {} |
| 42 | 45 |
| 43 bool PassphraseAcceptedChecker::IsExitConditionSatisfied() { | 46 bool PassphraseAcceptedChecker::IsExitConditionSatisfied() { |
| 44 return !service()->IsPassphraseRequired() && | 47 return !service()->IsPassphraseRequired() && |
| 45 service()->IsUsingSecondaryPassphrase(); | 48 service()->IsUsingSecondaryPassphrase(); |
| 46 } | 49 } |
| 47 | 50 |
| 48 std::string PassphraseAcceptedChecker::GetDebugMessage() const { | 51 std::string PassphraseAcceptedChecker::GetDebugMessage() const { |
| 49 return "Passhrase Accepted"; | 52 return "Passhrase Accepted"; |
| 50 } | 53 } |
| OLD | NEW |