| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/sync/driver/glue/sync_backend_host_impl.h" | 5 #include "components/sync/driver/glue/sync_backend_host_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <cstddef> | 9 #include <cstddef> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 const sync_pb::EncryptedData&)); | 97 const sync_pb::EncryptedData&)); |
| 98 MOCK_METHOD0(OnPassphraseAccepted, void()); | 98 MOCK_METHOD0(OnPassphraseAccepted, void()); |
| 99 MOCK_METHOD2(OnEncryptedTypesChanged, void(syncer::ModelTypeSet, bool)); | 99 MOCK_METHOD2(OnEncryptedTypesChanged, void(syncer::ModelTypeSet, bool)); |
| 100 MOCK_METHOD0(OnEncryptionComplete, void()); | 100 MOCK_METHOD0(OnEncryptionComplete, void()); |
| 101 MOCK_METHOD1(OnMigrationNeededForTypes, void(syncer::ModelTypeSet)); | 101 MOCK_METHOD1(OnMigrationNeededForTypes, void(syncer::ModelTypeSet)); |
| 102 MOCK_METHOD1(OnProtocolEvent, void(const syncer::ProtocolEvent&)); | 102 MOCK_METHOD1(OnProtocolEvent, void(const syncer::ProtocolEvent&)); |
| 103 MOCK_METHOD2(OnDirectoryTypeCommitCounterUpdated, | 103 MOCK_METHOD2(OnDirectoryTypeCommitCounterUpdated, |
| 104 void(syncer::ModelType, const syncer::CommitCounters&)); | 104 void(syncer::ModelType, const syncer::CommitCounters&)); |
| 105 MOCK_METHOD2(OnDirectoryTypeUpdateCounterUpdated, | 105 MOCK_METHOD2(OnDirectoryTypeUpdateCounterUpdated, |
| 106 void(syncer::ModelType, const syncer::UpdateCounters&)); | 106 void(syncer::ModelType, const syncer::UpdateCounters&)); |
| 107 MOCK_METHOD2(OnDirectoryTypeStatusCounterUpdated, | 107 // workaround GMOCK problems with std::unique_ptr<>. |
| 108 void(syncer::ModelType, const syncer::StatusCounters&)); | 108 void OnDatatypeStatusCounterUpdated( |
| 109 syncer::ModelType, |
| 110 std::unique_ptr<syncer::StatusCounters>) override {} |
| 109 MOCK_METHOD1(OnExperimentsChanged, void(const syncer::Experiments&)); | 111 MOCK_METHOD1(OnExperimentsChanged, void(const syncer::Experiments&)); |
| 110 MOCK_METHOD1(OnActionableError, | 112 MOCK_METHOD1(OnActionableError, |
| 111 void(const syncer::SyncProtocolError& sync_error)); | 113 void(const syncer::SyncProtocolError& sync_error)); |
| 112 MOCK_METHOD0(OnSyncConfigureRetry, void()); | 114 MOCK_METHOD0(OnSyncConfigureRetry, void()); |
| 113 MOCK_METHOD1( | 115 MOCK_METHOD1( |
| 114 OnLocalSetPassphraseEncryption, | 116 OnLocalSetPassphraseEncryption, |
| 115 void(const syncer::SyncEncryptionHandler::NigoriState& nigori_state)); | 117 void(const syncer::SyncEncryptionHandler::NigoriState& nigori_state)); |
| 116 }; | 118 }; |
| 117 | 119 |
| 118 class FakeSyncManagerFactory : public syncer::SyncManagerFactory { | 120 class FakeSyncManagerFactory : public syncer::SyncManagerFactory { |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 backend_->StopSyncingForShutdown(); | 863 backend_->StopSyncingForShutdown(); |
| 862 // Verify that call to DeactivateNonBlockingDataType doesn't assert. | 864 // Verify that call to DeactivateNonBlockingDataType doesn't assert. |
| 863 backend_->DeactivateNonBlockingDataType(syncer::AUTOFILL); | 865 backend_->DeactivateNonBlockingDataType(syncer::AUTOFILL); |
| 864 backend_->Shutdown(syncer::STOP_SYNC); | 866 backend_->Shutdown(syncer::STOP_SYNC); |
| 865 backend_.reset(); | 867 backend_.reset(); |
| 866 } | 868 } |
| 867 | 869 |
| 868 } // namespace | 870 } // namespace |
| 869 | 871 |
| 870 } // namespace browser_sync | 872 } // namespace browser_sync |
| OLD | NEW |