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 #include "chrome/browser/sync/test_profile_sync_service.h" | 5 #include "chrome/browser/sync/test_profile_sync_service.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 ProfileSyncComponentsFactoryMock* | 174 ProfileSyncComponentsFactoryMock* |
175 TestProfileSyncService::GetSyncApiComponentFactoryMock() { | 175 TestProfileSyncService::GetSyncApiComponentFactoryMock() { |
176 // We always create a mock factory, see Build* routines. | 176 // We always create a mock factory, see Build* routines. |
177 return static_cast<ProfileSyncComponentsFactoryMock*>( | 177 return static_cast<ProfileSyncComponentsFactoryMock*>( |
178 GetSyncClient()->GetSyncApiComponentFactory()); | 178 GetSyncClient()->GetSyncApiComponentFactory()); |
179 } | 179 } |
180 | 180 |
181 void TestProfileSyncService::OnConfigureDone( | 181 void TestProfileSyncService::OnConfigureDone( |
182 const sync_driver::DataTypeManager::ConfigureResult& result) { | 182 const sync_driver::DataTypeManager::ConfigureResult& result) { |
183 ProfileSyncService::OnConfigureDone(result); | 183 ProfileSyncService::OnConfigureDone(result); |
184 base::MessageLoop::current()->Quit(); | 184 base::MessageLoop::current()->QuitWhenIdle(); |
185 } | 185 } |
186 | 186 |
187 UserShare* TestProfileSyncService::GetUserShare() const { | 187 UserShare* TestProfileSyncService::GetUserShare() const { |
188 return backend_->GetUserShare(); | 188 return backend_->GetUserShare(); |
189 } | 189 } |
190 | 190 |
191 bool TestProfileSyncService::NeedBackup() const { | 191 bool TestProfileSyncService::NeedBackup() const { |
192 return false; | 192 return false; |
193 } | 193 } |
OLD | NEW |