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

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

Issue 1257663002: iOS factories for SigninManager and GaiaCookieManagerService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fakeSigninManager
Patch Set: Fix copyright Created 5 years, 4 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
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/public/test/test_keyed_service_provider.h" 5 #include "ios/public/test/test_keyed_service_provider.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 KeyedServiceBaseFactory* TestKeyedServiceProvider::GetBookmarkModelFactory() { 75 KeyedServiceBaseFactory* TestKeyedServiceProvider::GetBookmarkModelFactory() {
76 return MissingServiceKeyedServiceFactory::GetInstance(); 76 return MissingServiceKeyedServiceFactory::GetInstance();
77 } 77 }
78 78
79 bookmarks::BookmarkModel* 79 bookmarks::BookmarkModel*
80 TestKeyedServiceProvider::GetBookmarkModelForBrowserState( 80 TestKeyedServiceProvider::GetBookmarkModelForBrowserState(
81 ChromeBrowserState* browser_state) { 81 ChromeBrowserState* browser_state) {
82 return nullptr; 82 return nullptr;
83 } 83 }
84 84
85 KeyedServiceBaseFactory* TestKeyedServiceProvider::GetSigninManagerFactory() {
86 return MissingServiceKeyedServiceFactory::GetInstance();
87 }
88
89 SigninManager* TestKeyedServiceProvider::GetSigninManagerForBrowserState(
90 ChromeBrowserState* browser_state) {
91 return nullptr;
92 }
93
94 KeyedServiceBaseFactory* TestKeyedServiceProvider::GetSyncServiceFactory() { 85 KeyedServiceBaseFactory* TestKeyedServiceProvider::GetSyncServiceFactory() {
95 return FakeSyncServiceFactory::GetInstance(); 86 return FakeSyncServiceFactory::GetInstance();
96 } 87 }
97 88
98 sync_driver::SyncService* 89 sync_driver::SyncService*
99 TestKeyedServiceProvider::GetSyncServiceForBrowserState( 90 TestKeyedServiceProvider::GetSyncServiceForBrowserState(
100 ChromeBrowserState* browser_state) { 91 ChromeBrowserState* browser_state) {
101 return FakeSyncServiceFactory::GetForBrowserState(browser_state); 92 return FakeSyncServiceFactory::GetForBrowserState(browser_state);
102 } 93 }
103 94
104 } // namespace ios 95 } // 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