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_IMPL_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_IMPL_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_ |
6 #define COMPONENTS_SYNC_CORE_IMPL_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_ | 6 #define COMPONENTS_SYNC_CORE_IMPL_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "components/sync/core_impl/sync_manager_impl.h" | 12 #include "components/sync/core_impl/sync_manager_impl.h" |
13 | 13 |
14 namespace syncer { | 14 namespace syncer { |
15 | 15 |
16 // This class is used to help implement the TestProfileSyncService. | 16 // This class is used to help implement the TestProfileSyncService. |
17 // Those tests try to test sync without instantiating a real backend. | 17 // Those tests try to test sync without instantiating a real backend. |
18 class SyncManagerForProfileSyncTest : public syncer::SyncManagerImpl { | 18 class SyncManagerForProfileSyncTest : public SyncManagerImpl { |
19 public: | 19 public: |
20 SyncManagerForProfileSyncTest(std::string name, base::Closure init_callback); | 20 SyncManagerForProfileSyncTest(std::string name, base::Closure init_callback); |
21 ~SyncManagerForProfileSyncTest() override; | 21 ~SyncManagerForProfileSyncTest() override; |
22 void NotifyInitializationSuccess() override; | 22 void NotifyInitializationSuccess() override; |
23 | 23 |
24 private: | 24 private: |
25 base::Closure init_callback_; | 25 base::Closure init_callback_; |
26 }; | 26 }; |
27 | 27 |
28 } // namespace syncer | 28 } // namespace syncer |
29 | 29 |
30 #endif // COMPONENTS_SYNC_CORE_IMPL_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_ | 30 #endif // COMPONENTS_SYNC_CORE_IMPL_TEST_SYNC_MANAGER_FOR_PROFILE_SYNC_TEST_H_ |
OLD | NEW |