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

Side by Side Diff: components/sync/core_impl/test/fake_sync_manager.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/core/test/fake_sync_manager.h" 5 #include "components/sync/core/test/fake_sync_manager.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 SyncEncryptionHandler* FakeSyncManager::GetEncryptionHandler() { 220 SyncEncryptionHandler* FakeSyncManager::GetEncryptionHandler() {
221 return fake_encryption_handler_.get(); 221 return fake_encryption_handler_.get();
222 } 222 }
223 223
224 std::vector<std::unique_ptr<ProtocolEvent>> 224 std::vector<std::unique_ptr<ProtocolEvent>>
225 FakeSyncManager::GetBufferedProtocolEvents() { 225 FakeSyncManager::GetBufferedProtocolEvents() {
226 return std::vector<std::unique_ptr<ProtocolEvent>>(); 226 return std::vector<std::unique_ptr<ProtocolEvent>>();
227 } 227 }
228 228
229 std::unique_ptr<base::ListValue> FakeSyncManager::GetAllNodesForType(
230 syncer::ModelType type) {
231 return std::unique_ptr<base::ListValue>(new base::ListValue());
232 }
233
234 void FakeSyncManager::RefreshTypes(ModelTypeSet types) { 229 void FakeSyncManager::RefreshTypes(ModelTypeSet types) {
235 last_refresh_request_types_ = types; 230 last_refresh_request_types_ = types;
236 } 231 }
237 232
238 void FakeSyncManager::RegisterDirectoryTypeDebugInfoObserver( 233 void FakeSyncManager::RegisterDirectoryTypeDebugInfoObserver(
239 syncer::TypeDebugInfoObserver* observer) {} 234 syncer::TypeDebugInfoObserver* observer) {}
240 235
241 void FakeSyncManager::UnregisterDirectoryTypeDebugInfoObserver( 236 void FakeSyncManager::UnregisterDirectoryTypeDebugInfoObserver(
242 syncer::TypeDebugInfoObserver* observer) {} 237 syncer::TypeDebugInfoObserver* observer) {}
243 238
(...skipping 19 matching lines...) Expand all
263 } 258 }
264 259
265 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) { 260 void FakeSyncManager::ClearServerData(const ClearServerDataCallback& callback) {
266 callback.Run(); 261 callback.Run();
267 } 262 }
268 263
269 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch, 264 void FakeSyncManager::OnCookieJarChanged(bool account_mismatch,
270 bool empty_jar) {} 265 bool empty_jar) {}
271 266
272 } // namespace syncer 267 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/core_impl/sync_manager_impl_unittest.cc ('k') | components/sync/driver/data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698