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

Side by Side Diff: sync/internal_api/test/fake_sync_manager.cc

Issue 224563004: sync: Re-implement getAllNodes WebUI function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment fix Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/sessions/model_type_registry.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "sync/internal_api/public/test/fake_sync_manager.h" 5 #include "sync/internal_api/public/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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 SyncEncryptionHandler* FakeSyncManager::GetEncryptionHandler() { 238 SyncEncryptionHandler* FakeSyncManager::GetEncryptionHandler() {
239 return fake_encryption_handler_.get(); 239 return fake_encryption_handler_.get();
240 } 240 }
241 241
242 ScopedVector<syncer::ProtocolEvent> 242 ScopedVector<syncer::ProtocolEvent>
243 FakeSyncManager::GetBufferedProtocolEvents() { 243 FakeSyncManager::GetBufferedProtocolEvents() {
244 return ScopedVector<syncer::ProtocolEvent>(); 244 return ScopedVector<syncer::ProtocolEvent>();
245 } 245 }
246 246
247 scoped_ptr<base::ListValue> FakeSyncManager::GetAllNodesForType(
248 syncer::ModelType type) {
249 return scoped_ptr<base::ListValue>(new base::ListValue());
250 }
251
247 void FakeSyncManager::RefreshTypes(ModelTypeSet types) { 252 void FakeSyncManager::RefreshTypes(ModelTypeSet types) {
248 last_refresh_request_types_ = types; 253 last_refresh_request_types_ = types;
249 } 254 }
250 255
251 void FakeSyncManager::OnIncomingInvalidation( 256 void FakeSyncManager::OnIncomingInvalidation(
252 const ObjectIdInvalidationMap& invalidation_map) { 257 const ObjectIdInvalidationMap& invalidation_map) {
253 // Do nothing. 258 // Do nothing.
254 } 259 }
255 260
256 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { 261 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() {
257 return last_refresh_request_types_; 262 return last_refresh_request_types_;
258 } 263 }
259 264
260 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) { 265 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) {
261 // Do nothing. 266 // Do nothing.
262 } 267 }
263 268
264 std::string FakeSyncManager::GetOwnerName() const { return "FakeSyncManager"; } 269 std::string FakeSyncManager::GetOwnerName() const { return "FakeSyncManager"; }
265 270
266 } // namespace syncer 271 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/sessions/model_type_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698