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" |
(...skipping 12 matching lines...) Expand all Loading... |
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, sessions::SyncSessionContext* context) { |
26 return scoped_ptr<SyncScheduler>(new FakeSyncScheduler()); | 26 return scoped_ptr<SyncScheduler>(new FakeSyncScheduler()); |
27 } | 27 } |
28 | 28 |
29 scoped_ptr<sessions::SyncSessionContext> | 29 scoped_ptr<sessions::SyncSessionContext> |
30 TestInternalComponentsFactory::BuildContext( | 30 TestInternalComponentsFactory::BuildContext( |
31 ServerConnectionManager* connection_manager, | 31 ServerConnectionManager* connection_manager, |
32 syncable::Directory* directory, | 32 syncable::Directory* directory, |
33 const std::vector<ModelSafeWorker*> workers, | 33 const std::vector<ModelSafeWorker*>& workers, |
34 ExtensionsActivityMonitor* monitor, | 34 ExtensionsActivityMonitor* monitor, |
35 ThrottledDataTypeTracker* throttled_data_type_tracker, | 35 ThrottledDataTypeTracker* throttled_data_type_tracker, |
36 const std::vector<SyncEngineEventListener*>& listeners, | 36 const std::vector<SyncEngineEventListener*>& listeners, |
37 sessions::DebugInfoGetter* debug_info_getter, | 37 sessions::DebugInfoGetter* debug_info_getter, |
38 TrafficRecorder* traffic_recorder, | 38 TrafficRecorder* traffic_recorder, |
39 const std::string& invalidator_client_id) { | 39 const std::string& invalidator_client_id) { |
40 | 40 |
41 // Tests don't wire up listeners. | 41 // Tests don't wire up listeners. |
42 std::vector<SyncEngineEventListener*> empty_listeners; | 42 std::vector<SyncEngineEventListener*> empty_listeners; |
43 return scoped_ptr<sessions::SyncSessionContext>( | 43 return scoped_ptr<sessions::SyncSessionContext>( |
(...skipping 24 matching lines...) Expand all Loading... |
68 NOTREACHED(); | 68 NOTREACHED(); |
69 return scoped_ptr<syncable::DirectoryBackingStore>(); | 69 return scoped_ptr<syncable::DirectoryBackingStore>(); |
70 } | 70 } |
71 | 71 |
72 InternalComponentsFactory::Switches | 72 InternalComponentsFactory::Switches |
73 TestInternalComponentsFactory::GetSwitches() const { | 73 TestInternalComponentsFactory::GetSwitches() const { |
74 return switches_; | 74 return switches_; |
75 } | 75 } |
76 | 76 |
77 } // namespace syncer | 77 } // namespace syncer |
OLD | NEW |