Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: components/sync/core/test/test_internal_components_factory.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_SYNC_CORE_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ 5 #ifndef COMPONENTS_SYNC_CORE_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_
6 #define COMPONENTS_SYNC_CORE_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ 6 #define COMPONENTS_SYNC_CORE_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "components/sync/core/internal_components_factory.h" 12 #include "components/sync/core/internal_components_factory.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 15
16 class TestInternalComponentsFactory : public InternalComponentsFactory { 16 class TestInternalComponentsFactory : public InternalComponentsFactory {
17 public: 17 public:
18 explicit TestInternalComponentsFactory(const Switches& switches, 18 explicit TestInternalComponentsFactory(const Switches& switches,
19 StorageOption option, 19 StorageOption option,
20 StorageOption* storage_used); 20 StorageOption* storage_used);
21 ~TestInternalComponentsFactory() override; 21 ~TestInternalComponentsFactory() override;
22 22
23 std::unique_ptr<SyncScheduler> BuildScheduler( 23 std::unique_ptr<SyncScheduler> BuildScheduler(
24 const std::string& name, 24 const std::string& name,
25 SyncCycleContext* context, 25 SyncCycleContext* context,
26 CancelationSignal* cancelation_signal) override; 26 syncer::CancelationSignal* cancelation_signal) override;
27 27
28 std::unique_ptr<SyncCycleContext> BuildContext( 28 std::unique_ptr<SyncCycleContext> BuildContext(
29 ServerConnectionManager* connection_manager, 29 ServerConnectionManager* connection_manager,
30 syncable::Directory* directory, 30 syncable::Directory* directory,
31 ExtensionsActivity* monitor, 31 ExtensionsActivity* monitor,
32 const std::vector<SyncEngineEventListener*>& listeners, 32 const std::vector<SyncEngineEventListener*>& listeners,
33 DebugInfoGetter* debug_info_getter, 33 DebugInfoGetter* debug_info_getter,
34 ModelTypeRegistry* model_type_registry, 34 ModelTypeRegistry* model_type_registry,
35 const std::string& invalidator_client_id) override; 35 const std::string& invalidator_client_id) override;
36 36
37 std::unique_ptr<syncable::DirectoryBackingStore> BuildDirectoryBackingStore( 37 std::unique_ptr<syncable::DirectoryBackingStore> BuildDirectoryBackingStore(
38 StorageOption storage, 38 StorageOption storage,
39 const std::string& dir_name, 39 const std::string& dir_name,
40 const base::FilePath& backing_filepath) override; 40 const base::FilePath& backing_filepath) override;
41 41
42 Switches GetSwitches() const override; 42 Switches GetSwitches() const override;
43 43
44 private: 44 private:
45 const Switches switches_; 45 const Switches switches_;
46 const StorageOption storage_override_; 46 const StorageOption storage_override_;
47 StorageOption* storage_used_; 47 StorageOption* storage_used_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(TestInternalComponentsFactory); 49 DISALLOW_COPY_AND_ASSIGN(TestInternalComponentsFactory);
50 }; 50 };
51 51
52 } // namespace syncer 52 } // namespace syncer
53 53
54 #endif // COMPONENTS_SYNC_CORE_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ 54 #endif // COMPONENTS_SYNC_CORE_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_
OLDNEW
« no previous file with comments | « components/sync/core/test/sync_manager_factory_for_profile_sync_test.h ('k') | components/sync/core/test/test_user_share.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698