Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / public / test / test_chrome_browser_provider.h
blob0422c8e2e5ebe2c65720558e49fd0f66de959167
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 #ifndef IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_
6 #define IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
11 namespace ios {
13 class FakeProfileOAuth2TokenServiceIOSProvider;
14 class FakeStringProvider;
16 class TestChromeBrowserProvider : public ChromeBrowserProvider {
17 public:
18 TestChromeBrowserProvider();
19 ~TestChromeBrowserProvider() override;
21 // Returns the current provider as a |TestChromeBrowserProvider|.
22 static TestChromeBrowserProvider* GetTestProvider();
24 // ChromeBrowserProvider:
25 ChromeIdentityService* GetChromeIdentityService() override;
26 StringProvider* GetStringProvider() override;
27 const char* GetChromeUIScheme() override;
29 // Returns the string provider as a |FakeStringProvider|.
30 FakeStringProvider* GetStringProviderAsFake();
32 private:
33 scoped_ptr<ChromeIdentityService> chrome_identity_service_;
34 scoped_ptr<FakeStringProvider> string_provider_;
36 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserProvider);
39 } // namespace ios
41 #endif // IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_