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

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

Issue 1471783002: Provider API for UpdatableConfig (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove duplicate implementation of GetUpdatableResourceProvider() method Created 5 years 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
« no previous file with comments | « no previous file | ios/public/test/test_chrome_browser_provider.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 class TestUpdatableResourceProvider;
15 16
16 class TestChromeBrowserProvider : public ChromeBrowserProvider { 17 class TestChromeBrowserProvider : public ChromeBrowserProvider {
17 public: 18 public:
18 TestChromeBrowserProvider(); 19 TestChromeBrowserProvider();
19 ~TestChromeBrowserProvider() override; 20 ~TestChromeBrowserProvider() override;
20 21
21 // Returns the current provider as a |TestChromeBrowserProvider|. 22 // Returns the current provider as a |TestChromeBrowserProvider|.
22 static TestChromeBrowserProvider* GetTestProvider(); 23 static TestChromeBrowserProvider* GetTestProvider();
23 24
24 // ChromeBrowserProvider: 25 // ChromeBrowserProvider:
25 ChromeIdentityService* GetChromeIdentityService() override; 26 ChromeIdentityService* GetChromeIdentityService() override;
27 UpdatableResourceProvider* GetUpdatableResourceProvider() override;
26 StringProvider* GetStringProvider() override; 28 StringProvider* GetStringProvider() override;
27 29
28 // Returns the string provider as a |FakeStringProvider|. 30 // Returns the string provider as a |FakeStringProvider|.
29 FakeStringProvider* GetStringProviderAsFake(); 31 FakeStringProvider* GetStringProviderAsFake();
30 32
31 private: 33 private:
32 scoped_ptr<ChromeIdentityService> chrome_identity_service_; 34 scoped_ptr<ChromeIdentityService> chrome_identity_service_;
33 scoped_ptr<FakeStringProvider> string_provider_; 35 scoped_ptr<FakeStringProvider> string_provider_;
36 scoped_ptr<TestUpdatableResourceProvider> test_updatable_resource_provider_;
34 37
35 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserProvider); 38 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserProvider);
36 }; 39 };
37 40
38 } // namespace ios 41 } // namespace ios
39 42
40 #endif // IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_ 43 #endif // IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | ios/public/test/test_chrome_browser_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698