Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: ios/chrome/browser/sync/ios_chrome_profile_sync_test_util.h

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/browser/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 sync_driver {
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 ProfileSyncService::InitParams CreateProfileSyncServiceParamsForTest( 26 ProfileSyncService::InitParams CreateProfileSyncServiceParamsForTest(
27 std::unique_ptr<sync_driver::SyncClient> sync_client, 27 std::unique_ptr<sync_driver::SyncClient> sync_client,
28 ios::ChromeBrowserState* browser_state); 28 ios::ChromeBrowserState* browser_state);
29 29
30 // Helper routine to be used in conjunction with 30 // Helper routine to be used in conjunction with
31 // BrowserStateKeyedServiceFactory::SetTestingFactory(). 31 // BrowserStateKeyedServiceFactory::SetTestingFactory().
32 std::unique_ptr<KeyedService> BuildMockProfileSyncService( 32 std::unique_ptr<KeyedService> BuildMockProfileSyncService(
33 web::BrowserState* context); 33 web::BrowserState* context);
34 34
35 #endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_TEST_UTIL_H_ 35 #endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_PROFILE_SYNC_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698