| 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" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
| 17 #include "sync/internal_api/public/base/invalidator_state.h" | 17 #include "sync/internal_api/public/base/invalidator_state.h" |
| 18 #include "sync/internal_api/public/http_post_provider_factory.h" | 18 #include "sync/internal_api/public/http_post_provider_factory.h" |
| 19 #include "sync/internal_api/public/internal_components_factory.h" | 19 #include "sync/internal_api/public/internal_components_factory.h" |
| 20 #include "sync/internal_api/public/util/weak_handle.h" | 20 #include "sync/internal_api/public/util/weak_handle.h" |
| 21 #include "sync/notifier/invalidator.h" | |
| 22 #include "sync/notifier/object_id_invalidation_map.h" | |
| 23 #include "sync/syncable/directory.h" | 21 #include "sync/syncable/directory.h" |
| 24 #include "sync/test/fake_sync_encryption_handler.h" | 22 #include "sync/test/fake_sync_encryption_handler.h" |
| 25 | 23 |
| 26 namespace syncer { | 24 namespace syncer { |
| 27 | 25 |
| 28 FakeSyncManager::FakeSyncManager(ModelTypeSet initial_sync_ended_types, | 26 FakeSyncManager::FakeSyncManager(ModelTypeSet initial_sync_ended_types, |
| 29 ModelTypeSet progress_marker_types, | 27 ModelTypeSet progress_marker_types, |
| 30 ModelTypeSet configure_fail_types) : | 28 ModelTypeSet configure_fail_types) : |
| 31 initial_sync_ended_types_(initial_sync_ended_types), | 29 initial_sync_ended_types_(initial_sync_ended_types), |
| 32 progress_marker_types_(progress_marker_types), | 30 progress_marker_types_(progress_marker_types), |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 void FakeSyncManager::OnIncomingInvalidation( | 263 void FakeSyncManager::OnIncomingInvalidation( |
| 266 syncer::ModelType type, | 264 syncer::ModelType type, |
| 267 scoped_ptr<InvalidationInterface> invalidation) { | 265 scoped_ptr<InvalidationInterface> invalidation) { |
| 268 // Do nothing. | 266 // Do nothing. |
| 269 } | 267 } |
| 270 | 268 |
| 271 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { | 269 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { |
| 272 return last_refresh_request_types_; | 270 return last_refresh_request_types_; |
| 273 } | 271 } |
| 274 | 272 |
| 275 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) { | 273 void FakeSyncManager::SetInvalidatorEnabled(bool invalidator_enabled) { |
| 276 // Do nothing. | 274 // Do nothing. |
| 277 } | 275 } |
| 278 | 276 |
| 279 } // namespace syncer | 277 } // namespace syncer |
| OLD | NEW |