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

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

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. 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
« no previous file with comments | « components/sync/core/test/test_entry_factory.h ('k') | components/sync/core_impl/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_SYNC_CORE_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_
6 #define COMPONENTS_SYNC_CORE_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_
7
8 #include <memory>
9 #include <string>
10 #include <vector>
11
12 #include "base/macros.h"
13 #include "components/sync/core/internal_components_factory.h"
14
15 namespace syncer {
16
17 class TestInternalComponentsFactory : public InternalComponentsFactory {
18 public:
19 explicit TestInternalComponentsFactory(const Switches& switches,
20 StorageOption option,
21 StorageOption* storage_used);
22 ~TestInternalComponentsFactory() override;
23
24 std::unique_ptr<SyncScheduler> BuildScheduler(
25 const std::string& name,
26 SyncCycleContext* context,
27 CancelationSignal* cancelation_signal) override;
28
29 std::unique_ptr<SyncCycleContext> BuildContext(
30 ServerConnectionManager* connection_manager,
31 syncable::Directory* directory,
32 ExtensionsActivity* monitor,
33 const std::vector<SyncEngineEventListener*>& listeners,
34 DebugInfoGetter* debug_info_getter,
35 ModelTypeRegistry* model_type_registry,
36 const std::string& invalidator_client_id) override;
37
38 std::unique_ptr<syncable::DirectoryBackingStore> BuildDirectoryBackingStore(
39 StorageOption storage,
40 const std::string& dir_name,
41 const base::FilePath& backing_filepath) override;
42
43 Switches GetSwitches() const override;
44
45 private:
46 const Switches switches_;
47 const StorageOption storage_override_;
48 StorageOption* storage_used_;
49
50 DISALLOW_COPY_AND_ASSIGN(TestInternalComponentsFactory);
51 };
52
53 } // namespace syncer
54
55 #endif // COMPONENTS_SYNC_CORE_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_
OLDNEW
« no previous file with comments | « components/sync/core/test/test_entry_factory.h ('k') | components/sync/core_impl/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698