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_mock.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_mock.h" |
6 | 6 |
7 #include "components/sync_driver/sync_frontend.h" | 7 #include "components/sync_driver/sync_frontend.h" |
8 | 8 |
9 namespace browser_sync { | 9 namespace browser_sync { |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 void SyncBackendHostMock::ActivateDataType( | 63 void SyncBackendHostMock::ActivateDataType( |
64 syncer::ModelType type, syncer::ModelSafeGroup group, | 64 syncer::ModelType type, syncer::ModelSafeGroup group, |
65 ChangeProcessor* change_processor) {} | 65 ChangeProcessor* change_processor) {} |
66 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {} | 66 void SyncBackendHostMock::DeactivateDataType(syncer::ModelType type) {} |
67 | 67 |
68 syncer::UserShare* SyncBackendHostMock::GetUserShare() const { | 68 syncer::UserShare* SyncBackendHostMock::GetUserShare() const { |
69 return NULL; | 69 return NULL; |
70 } | 70 } |
71 | 71 |
| 72 syncer::SyncCoreProxy SyncBackendHostMock::GetSyncCoreProxy() { |
| 73 return syncer::SyncCoreProxy::GetInvalidSyncCoreProxyForTest(); |
| 74 } |
| 75 |
72 SyncBackendHost::Status SyncBackendHostMock::GetDetailedStatus() { | 76 SyncBackendHost::Status SyncBackendHostMock::GetDetailedStatus() { |
73 return SyncBackendHost::Status(); | 77 return SyncBackendHost::Status(); |
74 } | 78 } |
75 | 79 |
76 syncer::sessions::SyncSessionSnapshot | 80 syncer::sessions::SyncSessionSnapshot |
77 SyncBackendHostMock::GetLastSessionSnapshot() const { | 81 SyncBackendHostMock::GetLastSessionSnapshot() const { |
78 return syncer::sessions::SyncSessionSnapshot(); | 82 return syncer::sessions::SyncSessionSnapshot(); |
79 } | 83 } |
80 | 84 |
81 bool SyncBackendHostMock::HasUnsyncedItems() const { | 85 bool SyncBackendHostMock::HasUnsyncedItems() const { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 void SyncBackendHostMock::RequestBufferedProtocolEventsAndEnableForwarding() {} | 117 void SyncBackendHostMock::RequestBufferedProtocolEventsAndEnableForwarding() {} |
114 | 118 |
115 void SyncBackendHostMock::DisableProtocolEventForwarding() {} | 119 void SyncBackendHostMock::DisableProtocolEventForwarding() {} |
116 | 120 |
117 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { | 121 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { |
118 fail_initial_download_ = should_fail; | 122 fail_initial_download_ = should_fail; |
119 } | 123 } |
120 | 124 |
121 } // namespace browser_sync | 125 } // namespace browser_sync |
122 | 126 |
OLD | NEW |