OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYNC_MANAGER_FACTORY_FOR_PROFILE_SYNC_TEST_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_TEST_SYNC_MANAGER_FACTORY_FOR_PROFILE_SYNC_TEST_H_ |
6 #define COMPONENTS_SYNC_CORE_TEST_SYNC_MANAGER_FACTORY_FOR_PROFILE_SYNC_TEST_H_ | 6 #define COMPONENTS_SYNC_CORE_TEST_SYNC_MANAGER_FACTORY_FOR_PROFILE_SYNC_TEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "components/sync/core/sync_manager_factory.h" | 12 #include "components/sync/core/sync_manager_factory.h" |
13 | 13 |
14 namespace syncer { | 14 namespace syncer { |
15 | 15 |
16 class SyncManagerFactoryForProfileSyncTest : public SyncManagerFactory { | 16 class SyncManagerFactoryForProfileSyncTest : public syncer::SyncManagerFactory { |
17 public: | 17 public: |
18 explicit SyncManagerFactoryForProfileSyncTest(base::Closure init_callback); | 18 explicit SyncManagerFactoryForProfileSyncTest(base::Closure init_callback); |
19 ~SyncManagerFactoryForProfileSyncTest() override; | 19 ~SyncManagerFactoryForProfileSyncTest() override; |
20 std::unique_ptr<SyncManager> CreateSyncManager( | 20 std::unique_ptr<syncer::SyncManager> CreateSyncManager( |
21 const std::string& name) override; | 21 const std::string& name) override; |
22 | 22 |
23 private: | 23 private: |
24 base::Closure init_callback_; | 24 base::Closure init_callback_; |
25 }; | 25 }; |
26 | 26 |
27 } // namespace syncer | 27 } // namespace syncer |
28 | 28 |
29 #endif // COMPONENTS_SYNC_CORE_TEST_SYNC_MANAGER_FACTORY_FOR_PROFILE_SYNC_TEST_
H_ | 29 #endif // COMPONENTS_SYNC_CORE_TEST_SYNC_MANAGER_FACTORY_FOR_PROFILE_SYNC_TEST_
H_ |
OLD | NEW |