OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_ | 5 #ifndef IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_ |
6 #define IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_ | 6 #define IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 9 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
10 | 10 |
11 namespace ios { | 11 namespace ios { |
12 | 12 |
13 class FakeProfileOAuth2TokenServiceIOSProvider; | 13 class FakeProfileOAuth2TokenServiceIOSProvider; |
14 class FakeStringProvider; | 14 class FakeStringProvider; |
15 | 15 |
16 class TestChromeBrowserProvider : public ChromeBrowserProvider { | 16 class TestChromeBrowserProvider : public ChromeBrowserProvider { |
17 public: | 17 public: |
18 TestChromeBrowserProvider(); | 18 TestChromeBrowserProvider(); |
19 virtual ~TestChromeBrowserProvider(); | 19 ~TestChromeBrowserProvider() override; |
20 | 20 |
21 // Returns the current provider as a |TestChromeBrowserProvider|. | 21 // Returns the current provider as a |TestChromeBrowserProvider|. |
22 static TestChromeBrowserProvider* GetTestProvider(); | 22 static TestChromeBrowserProvider* GetTestProvider(); |
23 | 23 |
24 // ChromeBrowserProvider: | 24 // ChromeBrowserProvider: |
25 StringProvider* GetStringProvider() override; | 25 StringProvider* GetStringProvider() override; |
26 const char* GetChromeUIScheme() override; | 26 const char* GetChromeUIScheme() override; |
27 | 27 |
28 private: | 28 private: |
29 scoped_ptr<FakeStringProvider> string_provider_; | 29 scoped_ptr<FakeStringProvider> string_provider_; |
30 | 30 |
31 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserProvider); | 31 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserProvider); |
32 }; | 32 }; |
33 | 33 |
34 } // namespace ios | 34 } // namespace ios |
35 | 35 |
36 #endif // IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_ | 36 #endif // IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_ |
OLD | NEW |