| 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" |
| 11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
| 12 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" | 12 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 14 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| 15 #include "chrome/browser/signin/signin_manager_factory.h" | 15 #include "chrome/browser/signin/signin_manager_factory.h" |
| 16 #include "chrome/browser/sync/chrome_sync_client.h" | 16 #include "chrome/browser/sync/chrome_sync_client.h" |
| 17 #include "chrome/browser/sync/glue/sync_backend_host.h" | |
| 18 #include "chrome/browser/sync/glue/sync_backend_host_core.h" | |
| 19 #include "chrome/browser/sync/profile_sync_service_factory.h" | 17 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 20 #include "chrome/browser/sync/profile_sync_test_util.h" | 18 #include "chrome/browser/sync/profile_sync_test_util.h" |
| 21 #include "chrome/browser/sync/test/test_http_bridge_factory.h" | 19 #include "chrome/browser/sync/test/test_http_bridge_factory.h" |
| 22 #include "chrome/common/channel_info.h" | 20 #include "chrome/common/channel_info.h" |
| 23 #include "components/invalidation/impl/profile_invalidation_provider.h" | 21 #include "components/invalidation/impl/profile_invalidation_provider.h" |
| 24 #include "components/signin/core/browser/signin_manager.h" | 22 #include "components/signin/core/browser/signin_manager.h" |
| 23 #include "components/sync_driver/glue/sync_backend_host.h" |
| 24 #include "components/sync_driver/glue/sync_backend_host_core.h" |
| 25 #include "components/sync_driver/signin_manager_wrapper.h" | 25 #include "components/sync_driver/signin_manager_wrapper.h" |
| 26 #include "components/sync_driver/sync_api_component_factory_mock.h" | 26 #include "components/sync_driver/sync_api_component_factory_mock.h" |
| 27 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" |
| 28 #include "google_apis/gaia/gaia_constants.h" | 28 #include "google_apis/gaia/gaia_constants.h" |
| 29 #include "sync/internal_api/public/test/sync_manager_factory_for_profile_sync_te
st.h" | 29 #include "sync/internal_api/public/test/sync_manager_factory_for_profile_sync_te
st.h" |
| 30 #include "sync/internal_api/public/test/test_internal_components_factory.h" | 30 #include "sync/internal_api/public/test/test_internal_components_factory.h" |
| 31 #include "sync/internal_api/public/user_share.h" | 31 #include "sync/internal_api/public/user_share.h" |
| 32 #include "sync/protocol/encryption.pb.h" | 32 #include "sync/protocol/encryption.pb.h" |
| 33 #include "testing/gmock/include/gmock/gmock.h" | 33 #include "testing/gmock/include/gmock/gmock.h" |
| 34 | 34 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 base::MessageLoop::current()->QuitWhenIdle(); | 196 base::MessageLoop::current()->QuitWhenIdle(); |
| 197 } | 197 } |
| 198 | 198 |
| 199 UserShare* TestProfileSyncService::GetUserShare() const { | 199 UserShare* TestProfileSyncService::GetUserShare() const { |
| 200 return backend_->GetUserShare(); | 200 return backend_->GetUserShare(); |
| 201 } | 201 } |
| 202 | 202 |
| 203 bool TestProfileSyncService::NeedBackup() const { | 203 bool TestProfileSyncService::NeedBackup() const { |
| 204 return false; | 204 return false; |
| 205 } | 205 } |
| OLD | NEW |