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

Side by Side Diff: ios/public/test/test_chrome_browser_provider.mm

Issue 1663783002: Remove the //ios/public/test target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios_tests
Patch Set: Add missing forwarding-header Created 4 years, 10 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
(Empty)
1 // Copyright 2013 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_chrome_browser_provider.h"
6
7 #include "base/logging.h"
8 #include "components/signin/ios/browser/fake_profile_oauth2_token_service_ios_pr ovider.h"
9 #include "ios/public/provider/chrome/browser/signin/chrome_identity_service.h"
10 #import "ios/public/test/test_updatable_resource_provider.h"
11
12 namespace ios {
13
14 TestChromeBrowserProvider::TestChromeBrowserProvider()
15 : oauth2_token_service_provider_(
16 new FakeProfileOAuth2TokenServiceIOSProvider),
17 chrome_identity_service_(new ios::ChromeIdentityService),
18 test_updatable_resource_provider_(new TestUpdatableResourceProvider) {}
19
20 TestChromeBrowserProvider::~TestChromeBrowserProvider() {
21 }
22
23 // static
24 TestChromeBrowserProvider* TestChromeBrowserProvider::GetTestProvider() {
25 ChromeBrowserProvider* provider = GetChromeBrowserProvider();
26 DCHECK(provider);
27 return static_cast<TestChromeBrowserProvider*>(provider);
28 }
29
30 ProfileOAuth2TokenServiceIOSProvider*
31 TestChromeBrowserProvider::GetProfileOAuth2TokenServiceIOSProvider() {
32 return oauth2_token_service_provider_.get();
33 }
34
35 ChromeIdentityService* TestChromeBrowserProvider::GetChromeIdentityService() {
36 return chrome_identity_service_.get();
37 }
38
39 UpdatableResourceProvider*
40 TestChromeBrowserProvider::GetUpdatableResourceProvider() {
41 return test_updatable_resource_provider_.get();
42 }
43
44 } // namespace ios
OLDNEW
« no previous file with comments | « ios/public/test/test_chrome_browser_provider.h ('k') | ios/public/test/test_chrome_provider_initializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698