| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.h" | 5 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.h" |
| 6 | 6 |
| 7 #include <utility> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 9 #include "components/browser_sync/profile_sync_service_mock.h" | 11 #include "components/browser_sync/profile_sync_service_mock.h" |
| 10 #include "components/browser_sync/profile_sync_test_util.h" | 12 #include "components/browser_sync/profile_sync_test_util.h" |
| 11 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 13 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 12 #include "components/signin/core/browser/signin_manager.h" | 14 #include "components/signin/core/browser/signin_manager.h" |
| 13 #include "components/sync/driver/signin_manager_wrapper.h" | 15 #include "components/sync/driver/signin_manager_wrapper.h" |
| 14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 16 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
| 15 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" | 17 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" |
| 16 #include "ios/chrome/browser/signin/signin_manager_factory.h" | 18 #include "ios/chrome/browser/signin/signin_manager_factory.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 46 | 48 |
| 47 return init_params; | 49 return init_params; |
| 48 } | 50 } |
| 49 | 51 |
| 50 std::unique_ptr<KeyedService> BuildMockProfileSyncService( | 52 std::unique_ptr<KeyedService> BuildMockProfileSyncService( |
| 51 web::BrowserState* context) { | 53 web::BrowserState* context) { |
| 52 return base::MakeUnique<browser_sync::ProfileSyncServiceMock>( | 54 return base::MakeUnique<browser_sync::ProfileSyncServiceMock>( |
| 53 CreateProfileSyncServiceParamsForTest( | 55 CreateProfileSyncServiceParamsForTest( |
| 54 nullptr, ios::ChromeBrowserState::FromBrowserState(context))); | 56 nullptr, ios::ChromeBrowserState::FromBrowserState(context))); |
| 55 } | 57 } |
| OLD | NEW |