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/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 Loading... |
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* | |
86 TestKeyedServiceProvider::GetProfileOAuth2TokenServiceFactory() { | |
87 return MissingServiceKeyedServiceFactory::GetInstance(); | |
88 } | |
89 | |
90 ProfileOAuth2TokenService* | |
91 TestKeyedServiceProvider::GetProfileOAuth2TokenServiceForBrowserState( | |
92 ChromeBrowserState* browser_state) { | |
93 return nullptr; | |
94 } | |
95 | |
96 KeyedServiceBaseFactory* TestKeyedServiceProvider::GetSigninManagerFactory() { | 85 KeyedServiceBaseFactory* TestKeyedServiceProvider::GetSigninManagerFactory() { |
97 return MissingServiceKeyedServiceFactory::GetInstance(); | 86 return MissingServiceKeyedServiceFactory::GetInstance(); |
98 } | 87 } |
99 | 88 |
100 SigninManager* TestKeyedServiceProvider::GetSigninManagerForBrowserState( | 89 SigninManager* TestKeyedServiceProvider::GetSigninManagerForBrowserState( |
101 ChromeBrowserState* browser_state) { | 90 ChromeBrowserState* browser_state) { |
102 return nullptr; | 91 return nullptr; |
103 } | 92 } |
104 | 93 |
105 KeyedServiceBaseFactory* | 94 KeyedServiceBaseFactory* |
(...skipping 11 matching lines...) Expand all Loading... |
117 return FakeSyncServiceFactory::GetInstance(); | 106 return FakeSyncServiceFactory::GetInstance(); |
118 } | 107 } |
119 | 108 |
120 sync_driver::SyncService* | 109 sync_driver::SyncService* |
121 TestKeyedServiceProvider::GetSyncServiceForBrowserState( | 110 TestKeyedServiceProvider::GetSyncServiceForBrowserState( |
122 ChromeBrowserState* browser_state) { | 111 ChromeBrowserState* browser_state) { |
123 return FakeSyncServiceFactory::GetForBrowserState(browser_state); | 112 return FakeSyncServiceFactory::GetForBrowserState(browser_state); |
124 } | 113 } |
125 | 114 |
126 } // namespace ios | 115 } // namespace ios |
OLD | NEW |