| OLD | NEW |
| 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 CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 } // namespace browser_sync | 107 } // namespace browser_sync |
| 108 | 108 |
| 109 class TestProfileSyncService : public ProfileSyncService { | 109 class TestProfileSyncService : public ProfileSyncService { |
| 110 public: | 110 public: |
| 111 // TODO(tim): Remove |synchronous_backend_initialization|, and add ability to | 111 // TODO(tim): Remove |synchronous_backend_initialization|, and add ability to |
| 112 // inject TokenService alongside SigninManager. | 112 // inject TokenService alongside SigninManager. |
| 113 TestProfileSyncService( | 113 TestProfileSyncService( |
| 114 ProfileSyncComponentsFactory* factory, | 114 ProfileSyncComponentsFactory* factory, |
| 115 Profile* profile, | 115 Profile* profile, |
| 116 SigninManager* signin, | 116 SigninManagerBase* signin, |
| 117 ProfileSyncService::StartBehavior behavior, | 117 ProfileSyncService::StartBehavior behavior, |
| 118 bool synchronous_backend_initialization); | 118 bool synchronous_backend_initialization); |
| 119 | 119 |
| 120 virtual ~TestProfileSyncService(); | 120 virtual ~TestProfileSyncService(); |
| 121 | 121 |
| 122 virtual void OnBackendInitialized( | 122 virtual void OnBackendInitialized( |
| 123 const syncer::WeakHandle<syncer::JsBackend>& backend, | 123 const syncer::WeakHandle<syncer::JsBackend>& backend, |
| 124 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& | 124 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& |
| 125 debug_info_listener, | 125 debug_info_listener, |
| 126 bool success) OVERRIDE; | 126 bool success) OVERRIDE; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 bool synchronous_sync_configuration_; | 172 bool synchronous_sync_configuration_; |
| 173 | 173 |
| 174 base::Closure callback_; | 174 base::Closure callback_; |
| 175 bool set_initial_sync_ended_on_init_; | 175 bool set_initial_sync_ended_on_init_; |
| 176 | 176 |
| 177 bool fail_initial_download_; | 177 bool fail_initial_download_; |
| 178 syncer::StorageOption storage_option_; | 178 syncer::StorageOption storage_option_; |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 181 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |