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

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: 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
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 bool FakeSyncManager::HasUnsyncedItems() { 229 bool FakeSyncManager::HasUnsyncedItems() {
230 NOTIMPLEMENTED(); 230 NOTIMPLEMENTED();
231 return false; 231 return false;
232 } 232 }
233 233
234 SyncEncryptionHandler* FakeSyncManager::GetEncryptionHandler() { 234 SyncEncryptionHandler* FakeSyncManager::GetEncryptionHandler() {
235 return fake_encryption_handler_.get(); 235 return fake_encryption_handler_.get();
236 } 236 }
237 237
238 ScopedVector<syncer::ProtocolEvent>
239 FakeSyncManager::GetBufferedProtocolEvents() {
240 return ScopedVector<syncer::ProtocolEvent>();
241 }
242
238 void FakeSyncManager::RefreshTypes(ModelTypeSet types) { 243 void FakeSyncManager::RefreshTypes(ModelTypeSet types) {
239 last_refresh_request_types_ = types; 244 last_refresh_request_types_ = types;
240 } 245 }
241 246
242 void FakeSyncManager::OnIncomingInvalidation( 247 void FakeSyncManager::OnIncomingInvalidation(
243 const ObjectIdInvalidationMap& invalidation_map) { 248 const ObjectIdInvalidationMap& invalidation_map) {
244 // Do nothing. 249 // Do nothing.
245 } 250 }
246 251
247 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { 252 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() {
248 return last_refresh_request_types_; 253 return last_refresh_request_types_;
249 } 254 }
250 255
251 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) { 256 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) {
252 // Do nothing. 257 // Do nothing.
253 } 258 }
254 259
255 std::string FakeSyncManager::GetOwnerName() const { return "FakeSyncManager"; } 260 std::string FakeSyncManager::GetOwnerName() const { return "FakeSyncManager"; }
256 261
257 } // namespace syncer 262 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698