| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |