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

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

Issue 1663783002: Remove the //ios/public/test target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios_tests
Patch Set: Add missing forwarding-header Created 4 years, 10 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/macros.h" 8 // This is a forwarding header to avoid breaking Chrome on iOS downstream
9 #include "base/memory/scoped_ptr.h" 9 // during merge. The header will be removed once all downstream code has
10 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 10 // been ported to use the new path.
11 11 #include "ios/public/provider/chrome/browser/test_chrome_browser_provider.h"
12 class FakeProfileOAuth2TokenServiceIOSProvider;
13
14 namespace ios {
15
16 class TestUpdatableResourceProvider;
17
18 class TestChromeBrowserProvider : public ChromeBrowserProvider {
19 public:
20 TestChromeBrowserProvider();
21 ~TestChromeBrowserProvider() override;
22
23 // Returns the current provider as a |TestChromeBrowserProvider|.
24 static TestChromeBrowserProvider* GetTestProvider();
25
26 // ChromeBrowserProvider:
27 ProfileOAuth2TokenServiceIOSProvider*
28 GetProfileOAuth2TokenServiceIOSProvider() override;
29 ChromeIdentityService* GetChromeIdentityService() override;
30 UpdatableResourceProvider* GetUpdatableResourceProvider() override;
31
32 private:
33 scoped_ptr<FakeProfileOAuth2TokenServiceIOSProvider>
34 oauth2_token_service_provider_;
35 scoped_ptr<ChromeIdentityService> chrome_identity_service_;
36 scoped_ptr<TestUpdatableResourceProvider> test_updatable_resource_provider_;
37
38 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserProvider);
39 };
40
41 } // namespace ios
42 12
43 #endif // IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_ 13 #endif // IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_
OLDNEW
« no previous file with comments | « ios/public/test/fake_sync_service_factory.cc ('k') | ios/public/test/test_chrome_browser_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698