| 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 "chrome/browser/sync/glue/sync_backend_host_impl.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void(syncer::ModelType, const syncer::CommitCounters&)); | 99 void(syncer::ModelType, const syncer::CommitCounters&)); |
| 100 MOCK_METHOD2(OnDirectoryTypeUpdateCounterUpdated, | 100 MOCK_METHOD2(OnDirectoryTypeUpdateCounterUpdated, |
| 101 void(syncer::ModelType, const syncer::UpdateCounters&)); | 101 void(syncer::ModelType, const syncer::UpdateCounters&)); |
| 102 MOCK_METHOD2(OnDirectoryTypeStatusCounterUpdated, | 102 MOCK_METHOD2(OnDirectoryTypeStatusCounterUpdated, |
| 103 void(syncer::ModelType, const syncer::StatusCounters&)); | 103 void(syncer::ModelType, const syncer::StatusCounters&)); |
| 104 MOCK_METHOD1(OnExperimentsChanged, | 104 MOCK_METHOD1(OnExperimentsChanged, |
| 105 void(const syncer::Experiments&)); | 105 void(const syncer::Experiments&)); |
| 106 MOCK_METHOD1(OnActionableError, | 106 MOCK_METHOD1(OnActionableError, |
| 107 void(const syncer::SyncProtocolError& sync_error)); | 107 void(const syncer::SyncProtocolError& sync_error)); |
| 108 MOCK_METHOD0(OnSyncConfigureRetry, void()); | 108 MOCK_METHOD0(OnSyncConfigureRetry, void()); |
| 109 MOCK_METHOD1( |
| 110 OnLocalSetCustomPassphrase, |
| 111 void(const syncer::SyncEncryptionHandler::NigoriState& nigori_state)); |
| 109 }; | 112 }; |
| 110 | 113 |
| 111 class FakeSyncManagerFactory : public syncer::SyncManagerFactory { | 114 class FakeSyncManagerFactory : public syncer::SyncManagerFactory { |
| 112 public: | 115 public: |
| 113 explicit FakeSyncManagerFactory(FakeSyncManager** fake_manager) | 116 explicit FakeSyncManagerFactory(FakeSyncManager** fake_manager) |
| 114 : SyncManagerFactory(NORMAL), | 117 : SyncManagerFactory(NORMAL), |
| 115 fake_manager_(fake_manager) { | 118 fake_manager_(fake_manager) { |
| 116 *fake_manager_ = NULL; | 119 *fake_manager_ = NULL; |
| 117 } | 120 } |
| 118 ~FakeSyncManagerFactory() override {} | 121 ~FakeSyncManagerFactory() override {} |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 syncer::ModelTypeSet()); | 791 syncer::ModelTypeSet()); |
| 789 EXPECT_TRUE( | 792 EXPECT_TRUE( |
| 790 ready_types.Equals(syncer::Difference(enabled_types_, error_types))); | 793 ready_types.Equals(syncer::Difference(enabled_types_, error_types))); |
| 791 EXPECT_FALSE(fake_manager_->GetTypesWithEmptyProgressMarkerToken( | 794 EXPECT_FALSE(fake_manager_->GetTypesWithEmptyProgressMarkerToken( |
| 792 error_types).Empty()); | 795 error_types).Empty()); |
| 793 } | 796 } |
| 794 | 797 |
| 795 } // namespace | 798 } // namespace |
| 796 | 799 |
| 797 } // namespace browser_sync | 800 } // namespace browser_sync |
| OLD | NEW |