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 #ifndef IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_TEST_UTIL_H_ | 5 #ifndef IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_TEST_UTIL_H_ |
6 #define IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_TEST_UTIL_H_ | 6 #define IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_TEST_UTIL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "components/browser_sync/profile_sync_service.h" | 10 #include "components/browser_sync/profile_sync_service.h" |
11 | 11 |
12 namespace ios { | 12 namespace ios { |
13 class ChromeBrowserState; | 13 class ChromeBrowserState; |
14 } | 14 } |
15 | 15 |
16 namespace sync_driver { | 16 namespace syncer { |
17 class SyncClient; | 17 class SyncClient; |
18 } | 18 } |
19 | 19 |
20 namespace web { | 20 namespace web { |
21 class BrowserState; | 21 class BrowserState; |
22 } | 22 } |
23 | 23 |
24 // Helper method for constructing ProfileSyncService mocks. If |sync_client| | 24 // Helper method for constructing ProfileSyncService mocks. If |sync_client| |
25 // is null, a fresh one is created. | 25 // is null, a fresh one is created. |
26 browser_sync::ProfileSyncService::InitParams | 26 browser_sync::ProfileSyncService::InitParams |
27 CreateProfileSyncServiceParamsForTest( | 27 CreateProfileSyncServiceParamsForTest( |
28 std::unique_ptr<sync_driver::SyncClient> sync_client, | 28 std::unique_ptr<syncer::SyncClient> sync_client, |
29 ios::ChromeBrowserState* browser_state); | 29 ios::ChromeBrowserState* browser_state); |
30 | 30 |
31 // Helper routine to be used in conjunction with | 31 // Helper routine to be used in conjunction with |
32 // BrowserStateKeyedServiceFactory::SetTestingFactory(). | 32 // BrowserStateKeyedServiceFactory::SetTestingFactory(). |
33 std::unique_ptr<KeyedService> BuildMockProfileSyncService( | 33 std::unique_ptr<KeyedService> BuildMockProfileSyncService( |
34 web::BrowserState* context); | 34 web::BrowserState* context); |
35 | 35 |
36 #endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_TEST_UTIL_H_ | 36 #endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_TEST_UTIL_H_ |
OLD | NEW |