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

Side by Side Diff: ios/public/test/test_keyed_service_provider.cc

Issue 1158223003: [iOS] Add FakeSyncService and factory for testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 6 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
« no previous file with comments | « ios/public/test/test_keyed_service_provider.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ios/public/test/test_keyed_service_provider.h"
6
7 #include "components/sync_driver/fake_sync_service.h"
8 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state. h"
9 #include "ios/public/test/fake_sync_service_factory.h"
10
11 namespace ios {
12
13 TestKeyedServiceProvider::TestKeyedServiceProvider() {
14 }
15
16 TestKeyedServiceProvider::~TestKeyedServiceProvider() {
17 }
18
19 KeyedServiceBaseFactory* TestKeyedServiceProvider::GetSyncServiceFactory() {
20 return FakeSyncServiceFactory::GetInstance();
21 }
22
23 sync_driver::SyncService*
24 TestKeyedServiceProvider::GetSyncServiceForBrowserState(
25 ChromeBrowserState* browser_state) {
26 return FakeSyncServiceFactory::GetForBrowserState(browser_state);
27 }
28
29 } // namespace ios
OLDNEW
« no previous file with comments | « ios/public/test/test_keyed_service_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698