| 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 SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FACTORY_FOR_PROFILE_SYNC_TEST
_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FACTORY_FOR_PROFILE_SYNC_TEST
_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FACTORY_FOR_PROFILE_SYNC_TEST
_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FACTORY_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/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "sync/internal_api/public/sync_manager_factory.h" | 12 #include "sync/internal_api/public/sync_manager_factory.h" |
| 13 | 13 |
| 14 namespace syncer { | 14 namespace syncer { |
| 15 | 15 |
| 16 class SyncManagerFactoryForProfileSyncTest : public syncer::SyncManagerFactory { | 16 class SyncManagerFactoryForProfileSyncTest : public syncer::SyncManagerFactory { |
| 17 public: | 17 public: |
| 18 SyncManagerFactoryForProfileSyncTest(base::Closure init_callback); | 18 SyncManagerFactoryForProfileSyncTest(base::Closure init_callback); |
| 19 virtual ~SyncManagerFactoryForProfileSyncTest(); | 19 virtual ~SyncManagerFactoryForProfileSyncTest(); |
| 20 virtual scoped_ptr<syncer::SyncManager> CreateSyncManager( | 20 virtual scoped_ptr<syncer::SyncManager> CreateSyncManager( |
| 21 std::string name) OVERRIDE; | 21 std::string name) override; |
| 22 private: | 22 private: |
| 23 base::Closure init_callback_; | 23 base::Closure init_callback_; |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 } // namespace syncer | 26 } // namespace syncer |
| 27 | 27 |
| 28 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FACTORY_FOR_PROFILE_SYNC_T
EST_H_ | 28 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_SYNC_MANAGER_FACTORY_FOR_PROFILE_SYNC_T
EST_H_ |
| OLD | NEW |