| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/profile_sync_test_util.h" | 5 #include "chrome/browser/sync/profile_sync_test_util.h" |
| 6 | 6 |
| 7 #include <utility> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/location.h" | 10 #include "base/location.h" |
| 9 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 10 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 14 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| 13 #include "chrome/browser/signin/signin_manager_factory.h" | 15 #include "chrome/browser/signin/signin_manager_factory.h" |
| 14 #include "chrome/browser/sync/chrome_sync_client.h" | 16 #include "chrome/browser/sync/chrome_sync_client.h" |
| 15 #include "chrome/common/channel_info.h" | 17 #include "chrome/common/channel_info.h" |
| 16 #include "chrome/test/base/testing_profile.h" | 18 #include "chrome/test/base/testing_profile.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 ->SetAuthenticatedAccountInfo("12345", "foo"); | 70 ->SetAuthenticatedAccountInfo("12345", "foo"); |
| 69 return profile; | 71 return profile; |
| 70 } | 72 } |
| 71 | 73 |
| 72 std::unique_ptr<KeyedService> BuildMockProfileSyncService( | 74 std::unique_ptr<KeyedService> BuildMockProfileSyncService( |
| 73 content::BrowserContext* context) { | 75 content::BrowserContext* context) { |
| 74 return base::MakeUnique<browser_sync::ProfileSyncServiceMock>( | 76 return base::MakeUnique<browser_sync::ProfileSyncServiceMock>( |
| 75 CreateProfileSyncServiceParamsForTest( | 77 CreateProfileSyncServiceParamsForTest( |
| 76 Profile::FromBrowserContext(context))); | 78 Profile::FromBrowserContext(context))); |
| 77 } | 79 } |
| OLD | NEW |