Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: components/sync/driver/glue/sync_backend_host_mock.cc

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: update for Max Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_mock.h" 5 #include "components/sync/driver/glue/sync_backend_host_mock.h"
6 6
7 #include "components/sync/core/activation_context.h" 7 #include "components/sync/core/activation_context.h"
8 #include "components/sync/driver/sync_frontend.h" 8 #include "components/sync/driver/sync_frontend.h"
9 9
10 namespace browser_sync { 10 namespace browser_sync {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void SyncBackendHostMock::RefreshTypesForTest(syncer::ModelTypeSet types) {} 130 void SyncBackendHostMock::RefreshTypesForTest(syncer::ModelTypeSet types) {}
131 131
132 void SyncBackendHostMock::RequestBufferedProtocolEventsAndEnableForwarding() {} 132 void SyncBackendHostMock::RequestBufferedProtocolEventsAndEnableForwarding() {}
133 133
134 void SyncBackendHostMock::DisableProtocolEventForwarding() {} 134 void SyncBackendHostMock::DisableProtocolEventForwarding() {}
135 135
136 void SyncBackendHostMock::EnableDirectoryTypeDebugInfoForwarding() {} 136 void SyncBackendHostMock::EnableDirectoryTypeDebugInfoForwarding() {}
137 137
138 void SyncBackendHostMock::DisableDirectoryTypeDebugInfoForwarding() {} 138 void SyncBackendHostMock::DisableDirectoryTypeDebugInfoForwarding() {}
139 139
140 void SyncBackendHostMock::GetAllNodesForTypes(
141 syncer::ModelTypeSet types,
142 base::Callback<void(const std::vector<syncer::ModelType>& type,
143 std::vector<std::unique_ptr<base::ListValue>>)>
144 callback) {}
145
146 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { 140 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) {
147 fail_initial_download_ = should_fail; 141 fail_initial_download_ = should_fail;
148 } 142 }
149 143
150 void SyncBackendHostMock::ClearServerData( 144 void SyncBackendHostMock::ClearServerData(
151 const syncer::SyncManager::ClearServerDataCallback& callback) { 145 const syncer::SyncManager::ClearServerDataCallback& callback) {
152 callback.Run(); 146 callback.Run();
153 } 147 }
154 148
155 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch, 149 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch,
156 bool empty_jar) {} 150 bool empty_jar) {}
157 151
158 } // namespace browser_sync 152 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_mock.h ('k') | components/sync/driver/non_blocking_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698