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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 } | 104 } |
105 | 105 |
106 bool SyncBackendHostMock::IsCryptographerReady( | 106 bool SyncBackendHostMock::IsCryptographerReady( |
107 const syncer::BaseTransaction* trans) const { | 107 const syncer::BaseTransaction* trans) const { |
108 return false; | 108 return false; |
109 } | 109 } |
110 | 110 |
111 void SyncBackendHostMock::GetModelSafeRoutingInfo( | 111 void SyncBackendHostMock::GetModelSafeRoutingInfo( |
112 syncer::ModelSafeRoutingInfo* out) const {} | 112 syncer::ModelSafeRoutingInfo* out) const {} |
113 | 113 |
| 114 void SyncBackendHostMock::FlushDirectory() const {} |
| 115 |
114 base::MessageLoop* SyncBackendHostMock::GetSyncLoopForTesting() { | 116 base::MessageLoop* SyncBackendHostMock::GetSyncLoopForTesting() { |
115 return NULL; | 117 return NULL; |
116 } | 118 } |
117 | 119 |
118 void SyncBackendHostMock::RequestBufferedProtocolEventsAndEnableForwarding() {} | 120 void SyncBackendHostMock::RequestBufferedProtocolEventsAndEnableForwarding() {} |
119 | 121 |
120 void SyncBackendHostMock::DisableProtocolEventForwarding() {} | 122 void SyncBackendHostMock::DisableProtocolEventForwarding() {} |
121 | 123 |
122 void SyncBackendHostMock::EnableDirectoryTypeDebugInfoForwarding() {} | 124 void SyncBackendHostMock::EnableDirectoryTypeDebugInfoForwarding() {} |
123 | 125 |
124 void SyncBackendHostMock::DisableDirectoryTypeDebugInfoForwarding() {} | 126 void SyncBackendHostMock::DisableDirectoryTypeDebugInfoForwarding() {} |
125 | 127 |
126 void SyncBackendHostMock::GetAllNodesForTypes( | 128 void SyncBackendHostMock::GetAllNodesForTypes( |
127 syncer::ModelTypeSet types, | 129 syncer::ModelTypeSet types, |
128 base::Callback<void(const std::vector<syncer::ModelType>& type, | 130 base::Callback<void(const std::vector<syncer::ModelType>& type, |
129 ScopedVector<base::ListValue>) > callback) {} | 131 ScopedVector<base::ListValue>) > callback) {} |
130 | 132 |
131 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { | 133 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { |
132 fail_initial_download_ = should_fail; | 134 fail_initial_download_ = should_fail; |
133 } | 135 } |
134 | 136 |
135 } // namespace browser_sync | 137 } // namespace browser_sync |
136 | 138 |
OLD | NEW |