| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |