| 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 "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" | 8 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 10 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 return sync_service; | 160 return sync_service; |
| 161 } | 161 } |
| 162 | 162 |
| 163 ProfileSyncComponentsFactoryMock* | 163 ProfileSyncComponentsFactoryMock* |
| 164 TestProfileSyncService::components_factory_mock() { | 164 TestProfileSyncService::components_factory_mock() { |
| 165 // We always create a mock factory, see Build* routines. | 165 // We always create a mock factory, see Build* routines. |
| 166 return static_cast<ProfileSyncComponentsFactoryMock*>(factory()); | 166 return static_cast<ProfileSyncComponentsFactoryMock*>(factory()); |
| 167 } | 167 } |
| 168 | 168 |
| 169 void TestProfileSyncService::OnConfigureDone( | 169 void TestProfileSyncService::OnConfigureDone( |
| 170 const browser_sync::DataTypeManager::ConfigureResult& result) { | 170 const sync_driver::DataTypeManager::ConfigureResult& result) { |
| 171 ProfileSyncService::OnConfigureDone(result); | 171 ProfileSyncService::OnConfigureDone(result); |
| 172 base::MessageLoop::current()->Quit(); | 172 base::MessageLoop::current()->Quit(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 UserShare* TestProfileSyncService::GetUserShare() const { | 175 UserShare* TestProfileSyncService::GetUserShare() const { |
| 176 return backend_->GetUserShare(); | 176 return backend_->GetUserShare(); |
| 177 } | 177 } |
| OLD | NEW |