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.
5 #include "ios/public/test/test_chrome_browser_provider.h"
7 #include "base/logging.h"
8 #include "ios/public/provider/chrome/browser/signin/chrome_identity_service.h"
9 #include "ios/public/test/fake_string_provider.h"
12 const char kUIScheme[] = "chrome";
17 TestChromeBrowserProvider::TestChromeBrowserProvider()
18 : chrome_identity_service_(new ios::ChromeIdentityService),
19 string_provider_(new FakeStringProvider) {}
21 TestChromeBrowserProvider::~TestChromeBrowserProvider() {
25 TestChromeBrowserProvider* TestChromeBrowserProvider::GetTestProvider() {
26 ChromeBrowserProvider* provider = GetChromeBrowserProvider();
28 return static_cast<TestChromeBrowserProvider*>(provider);
31 ChromeIdentityService* TestChromeBrowserProvider::GetChromeIdentityService() {
32 return chrome_identity_service_.get();
35 StringProvider* TestChromeBrowserProvider::GetStringProvider() {
36 return string_provider_.get();
39 const char* TestChromeBrowserProvider::GetChromeUIScheme() {
44 TestChromeBrowserProvider::GetStringProviderAsFake() {
45 return string_provider_.get();