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 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ |
7 | 7 |
8 #include "sync/internal_api/public/internal_components_factory.h" | 8 #include "sync/internal_api/public/internal_components_factory.h" |
9 | 9 |
10 namespace syncer { | 10 namespace syncer { |
(...skipping 11 matching lines...) Expand all Loading... |
22 explicit TestInternalComponentsFactory(StorageOption option); | 22 explicit TestInternalComponentsFactory(StorageOption option); |
23 virtual ~TestInternalComponentsFactory(); | 23 virtual ~TestInternalComponentsFactory(); |
24 | 24 |
25 virtual scoped_ptr<SyncScheduler> BuildScheduler( | 25 virtual scoped_ptr<SyncScheduler> BuildScheduler( |
26 const std::string& name, | 26 const std::string& name, |
27 sessions::SyncSessionContext* context) OVERRIDE; | 27 sessions::SyncSessionContext* context) OVERRIDE; |
28 | 28 |
29 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( | 29 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( |
30 ServerConnectionManager* connection_manager, | 30 ServerConnectionManager* connection_manager, |
31 syncable::Directory* directory, | 31 syncable::Directory* directory, |
32 const ModelSafeRoutingInfo& routing_info, | |
33 const std::vector<ModelSafeWorker*> workers, | 32 const std::vector<ModelSafeWorker*> workers, |
34 ExtensionsActivityMonitor* monitor, | 33 ExtensionsActivityMonitor* monitor, |
35 ThrottledDataTypeTracker* throttled_data_type_tracker, | 34 ThrottledDataTypeTracker* throttled_data_type_tracker, |
36 const std::vector<SyncEngineEventListener*>& listeners, | 35 const std::vector<SyncEngineEventListener*>& listeners, |
37 sessions::DebugInfoGetter* debug_info_getter, | 36 sessions::DebugInfoGetter* debug_info_getter, |
38 TrafficRecorder* traffic_recorder) OVERRIDE; | 37 TrafficRecorder* traffic_recorder) OVERRIDE; |
39 | 38 |
40 virtual scoped_ptr<syncable::DirectoryBackingStore> | 39 virtual scoped_ptr<syncable::DirectoryBackingStore> |
41 BuildDirectoryBackingStore( | 40 BuildDirectoryBackingStore( |
42 const std::string& dir_name, | 41 const std::string& dir_name, |
43 const FilePath& backing_filepath) OVERRIDE; | 42 const FilePath& backing_filepath) OVERRIDE; |
44 | 43 |
45 private: | 44 private: |
46 const StorageOption storage_option_; | 45 const StorageOption storage_option_; |
47 | 46 |
48 DISALLOW_COPY_AND_ASSIGN(TestInternalComponentsFactory); | 47 DISALLOW_COPY_AND_ASSIGN(TestInternalComponentsFactory); |
49 }; | 48 }; |
50 | 49 |
51 } // namespace syncer | 50 } // namespace syncer |
52 | 51 |
53 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ | 52 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ |
OLD | NEW |