| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 base::WeakPtrFactory<SyncBackendHostForProfileSyncTest> weak_ptr_factory_; | 100 base::WeakPtrFactory<SyncBackendHostForProfileSyncTest> weak_ptr_factory_; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace browser_sync | 103 } // namespace browser_sync |
| 104 | 104 |
| 105 class TestProfileSyncService : public ProfileSyncService { | 105 class TestProfileSyncService : public ProfileSyncService { |
| 106 public: | 106 public: |
| 107 // TODO(tim): Remove |synchronous_backend_initialization|, and add ability to | 107 // TODO(tim): Remove |synchronous_backend_initialization|, and add ability to |
| 108 // inject TokenService alongside SigninManager. | 108 // inject TokenService alongside SigninManager. |
| 109 // TODO(rogerta): what does above comment mean? |
| 109 TestProfileSyncService( | 110 TestProfileSyncService( |
| 110 ProfileSyncComponentsFactory* factory, | 111 ProfileSyncComponentsFactory* factory, |
| 111 Profile* profile, | 112 Profile* profile, |
| 112 SigninManagerBase* signin, | 113 SigninManagerBase* signin, |
| 113 ProfileOAuth2TokenService* oauth2_token_service, | 114 ProfileOAuth2TokenService* oauth2_token_service, |
| 114 ProfileSyncService::StartBehavior behavior, | 115 ProfileSyncService::StartBehavior behavior, |
| 115 bool synchronous_backend_initialization); | 116 bool synchronous_backend_initialization); |
| 116 | 117 |
| 117 virtual ~TestProfileSyncService(); | 118 virtual ~TestProfileSyncService(); |
| 118 | 119 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 bool synchronous_sync_configuration_; | 184 bool synchronous_sync_configuration_; |
| 184 | 185 |
| 185 base::Closure callback_; | 186 base::Closure callback_; |
| 186 bool set_initial_sync_ended_on_init_; | 187 bool set_initial_sync_ended_on_init_; |
| 187 | 188 |
| 188 bool fail_initial_download_; | 189 bool fail_initial_download_; |
| 189 syncer::StorageOption storage_option_; | 190 syncer::StorageOption storage_option_; |
| 190 }; | 191 }; |
| 191 | 192 |
| 192 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ | 193 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |