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/test/fake_search_provider.h"
9 #include "ios/public/test/fake_string_provider.h"
12 const char kUIScheme[] = "uischeme";
17 TestChromeBrowserProvider::TestChromeBrowserProvider()
18 : string_provider_(new FakeStringProvider),
19 search_provider_(new FakeSearchProvider) {
22 TestChromeBrowserProvider::~TestChromeBrowserProvider() {
26 TestChromeBrowserProvider* TestChromeBrowserProvider::GetTestProvider() {
27 ChromeBrowserProvider* provider = GetChromeBrowserProvider();
29 return static_cast<TestChromeBrowserProvider*>(provider);
32 StringProvider* TestChromeBrowserProvider::GetStringProvider() {
33 return string_provider_.get();
36 const char* TestChromeBrowserProvider::GetChromeUIScheme() {
40 SearchProvider* TestChromeBrowserProvider::GetSearchProvider() {
41 return search_provider_.get();