| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Unit tests for the SyncApi. Note that a lot of the underlying | 5 // Unit tests for the SyncApi. Note that a lot of the underlying |
| 6 // functionality is provided by the Syncable layer, which has its own | 6 // functionality is provided by the Syncable layer, which has its own |
| 7 // unit tests. We'll test SyncApi specific things in this harness. | 7 // unit tests. We'll test SyncApi specific things in this harness. |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 MOCK_METHOD4(OnChangesApplied, | 593 MOCK_METHOD4(OnChangesApplied, |
| 594 void(ModelType, | 594 void(ModelType, |
| 595 const BaseTransaction*, | 595 const BaseTransaction*, |
| 596 const SyncManager::ChangeRecord*, | 596 const SyncManager::ChangeRecord*, |
| 597 int)); // NOLINT | 597 int)); // NOLINT |
| 598 MOCK_METHOD1(OnChangesComplete, void(ModelType)); // NOLINT | 598 MOCK_METHOD1(OnChangesComplete, void(ModelType)); // NOLINT |
| 599 MOCK_METHOD1(OnSyncCycleCompleted, | 599 MOCK_METHOD1(OnSyncCycleCompleted, |
| 600 void(const SyncSessionSnapshot*)); // NOLINT | 600 void(const SyncSessionSnapshot*)); // NOLINT |
| 601 MOCK_METHOD0(OnInitializationComplete, void()); // NOLINT | 601 MOCK_METHOD0(OnInitializationComplete, void()); // NOLINT |
| 602 MOCK_METHOD1(OnAuthError, void(const GoogleServiceAuthError&)); // NOLINT | 602 MOCK_METHOD1(OnAuthError, void(const GoogleServiceAuthError&)); // NOLINT |
| 603 MOCK_METHOD1(OnPassphraseRequired, void(bool)); // NOLINT | 603 MOCK_METHOD1(OnPassphraseRequired, |
| 604 MOCK_METHOD0(OnPassphraseFailed, void()); // NOLINT | 604 void(sync_api::PassphraseRequiredReason)); // NOLINT |
| 605 MOCK_METHOD1(OnPassphraseAccepted, void(const std::string&)); // NOLINT | 605 MOCK_METHOD1(OnPassphraseAccepted, void(const std::string&)); // NOLINT |
| 606 MOCK_METHOD0(OnStopSyncingPermanently, void()); // NOLINT | 606 MOCK_METHOD0(OnStopSyncingPermanently, void()); // NOLINT |
| 607 MOCK_METHOD1(OnUpdatedToken, void(const std::string&)); // NOLINT | 607 MOCK_METHOD1(OnUpdatedToken, void(const std::string&)); // NOLINT |
| 608 MOCK_METHOD1(OnMigrationNeededForTypes, void(const ModelTypeSet&)); | 608 MOCK_METHOD1(OnMigrationNeededForTypes, void(const ModelTypeSet&)); |
| 609 MOCK_METHOD0(OnClearServerDataFailed, void()); // NOLINT | 609 MOCK_METHOD0(OnClearServerDataFailed, void()); // NOLINT |
| 610 MOCK_METHOD0(OnClearServerDataSucceeded, void()); // NOLINT | 610 MOCK_METHOD0(OnClearServerDataSucceeded, void()); // NOLINT |
| 611 MOCK_METHOD1(OnEncryptionComplete, void(const ModelTypeSet&)); // NOLINT | 611 MOCK_METHOD1(OnEncryptionComplete, void(const ModelTypeSet&)); // NOLINT |
| 612 }; | 612 }; |
| 613 | 613 |
| 614 class SyncNotifierMock : public sync_notifier::SyncNotifier { | 614 class SyncNotifierMock : public sync_notifier::SyncNotifier { |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 true /* is encrypted */)); | 1121 true /* is encrypted */)); |
| 1122 EXPECT_TRUE(syncable::VerifyDataTypeEncryption(trans.GetWrappedTrans(), | 1122 EXPECT_TRUE(syncable::VerifyDataTypeEncryption(trans.GetWrappedTrans(), |
| 1123 syncable::THEMES, | 1123 syncable::THEMES, |
| 1124 false /* not encrypted */)); | 1124 false /* not encrypted */)); |
| 1125 } | 1125 } |
| 1126 } | 1126 } |
| 1127 | 1127 |
| 1128 } // namespace | 1128 } // namespace |
| 1129 | 1129 |
| 1130 } // namespace browser_sync | 1130 } // namespace browser_sync |
| OLD | NEW |