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

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

Issue 212603007: sync: Buffer Protocol Events for about:sync page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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.cc ('k') | sync/sync_internal_api.gypi » ('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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 232
233 bool FakeSyncManager::HasUnsyncedItems() { 233 bool FakeSyncManager::HasUnsyncedItems() {
234 NOTIMPLEMENTED(); 234 NOTIMPLEMENTED();
235 return false; 235 return false;
236 } 236 }
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>
243 FakeSyncManager::GetBufferedProtocolEvents() {
244 return ScopedVector<syncer::ProtocolEvent>();
245 }
246
242 void FakeSyncManager::RefreshTypes(ModelTypeSet types) { 247 void FakeSyncManager::RefreshTypes(ModelTypeSet types) {
243 last_refresh_request_types_ = types; 248 last_refresh_request_types_ = types;
244 } 249 }
245 250
246 void FakeSyncManager::OnIncomingInvalidation( 251 void FakeSyncManager::OnIncomingInvalidation(
247 const ObjectIdInvalidationMap& invalidation_map) { 252 const ObjectIdInvalidationMap& invalidation_map) {
248 // Do nothing. 253 // Do nothing.
249 } 254 }
250 255
251 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { 256 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() {
252 return last_refresh_request_types_; 257 return last_refresh_request_types_;
253 } 258 }
254 259
255 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) { 260 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) {
256 // Do nothing. 261 // Do nothing.
257 } 262 }
258 263
259 std::string FakeSyncManager::GetOwnerName() const { return "FakeSyncManager"; } 264 std::string FakeSyncManager::GetOwnerName() const { return "FakeSyncManager"; }
260 265
261 } // namespace syncer 266 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.cc ('k') | sync/sync_internal_api.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698