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/test_internal_components_factory.h" | 5 #include "sync/internal_api/public/test/test_internal_components_factory.h" |
6 | 6 |
7 #include "sync/sessions/sync_session_context.h" | 7 #include "sync/sessions/sync_session_context.h" |
8 #include "sync/syncable/in_memory_directory_backing_store.h" | 8 #include "sync/syncable/in_memory_directory_backing_store.h" |
9 #include "sync/syncable/on_disk_directory_backing_store.h" | 9 #include "sync/syncable/on_disk_directory_backing_store.h" |
10 #include "sync/syncable/invalid_directory_backing_store.h" | 10 #include "sync/syncable/invalid_directory_backing_store.h" |
11 #include "sync/test/engine/fake_sync_scheduler.h" | 11 #include "sync/test/engine/fake_sync_scheduler.h" |
12 | 12 |
13 namespace syncer { | 13 namespace syncer { |
14 | 14 |
15 TestInternalComponentsFactory::TestInternalComponentsFactory( | 15 TestInternalComponentsFactory::TestInternalComponentsFactory( |
16 const Switches& switches, | 16 const Switches& switches, |
17 StorageOption option) | 17 StorageOption option) |
18 : switches_(switches), | 18 : switches_(switches), |
19 storage_option_(option) { | 19 storage_option_(option) { |
20 } | 20 } |
21 | 21 |
22 TestInternalComponentsFactory::~TestInternalComponentsFactory() { } | 22 TestInternalComponentsFactory::~TestInternalComponentsFactory() { } |
23 | 23 |
24 scoped_ptr<SyncScheduler> TestInternalComponentsFactory::BuildScheduler( | 24 scoped_ptr<SyncScheduler> TestInternalComponentsFactory::BuildScheduler( |
25 const std::string& name, sessions::SyncSessionContext* context) { | 25 const std::string& name, |
| 26 sessions::SyncSessionContext* context, |
| 27 syncer::CancelationSignal* cancelation_signal) { |
26 return scoped_ptr<SyncScheduler>(new FakeSyncScheduler()); | 28 return scoped_ptr<SyncScheduler>(new FakeSyncScheduler()); |
27 } | 29 } |
28 | 30 |
29 scoped_ptr<sessions::SyncSessionContext> | 31 scoped_ptr<sessions::SyncSessionContext> |
30 TestInternalComponentsFactory::BuildContext( | 32 TestInternalComponentsFactory::BuildContext( |
31 ServerConnectionManager* connection_manager, | 33 ServerConnectionManager* connection_manager, |
32 syncable::Directory* directory, | 34 syncable::Directory* directory, |
33 const std::vector<ModelSafeWorker*>& workers, | 35 const std::vector<ModelSafeWorker*>& workers, |
34 ExtensionsActivity* monitor, | 36 ExtensionsActivity* monitor, |
35 const std::vector<SyncEngineEventListener*>& listeners, | 37 const std::vector<SyncEngineEventListener*>& listeners, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 NOTREACHED(); | 71 NOTREACHED(); |
70 return scoped_ptr<syncable::DirectoryBackingStore>(); | 72 return scoped_ptr<syncable::DirectoryBackingStore>(); |
71 } | 73 } |
72 | 74 |
73 InternalComponentsFactory::Switches | 75 InternalComponentsFactory::Switches |
74 TestInternalComponentsFactory::GetSwitches() const { | 76 TestInternalComponentsFactory::GetSwitches() const { |
75 return switches_; | 77 return switches_; |
76 } | 78 } |
77 | 79 |
78 } // namespace syncer | 80 } // namespace syncer |
OLD | NEW |