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

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

Issue 809333003: Upstream //ios/chrome/browser/translate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 11 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
(Empty)
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.
4
5 #ifndef IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_
6 #define IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
10
11 namespace ios {
12
13 class FakeProfileOAuth2TokenServiceIOSProvider;
14 class FakeStringProvider;
15
16 class TestChromeBrowserProvider : public ChromeBrowserProvider {
17 public:
18 TestChromeBrowserProvider();
19 virtual ~TestChromeBrowserProvider();
20
21 // Returns the current provider as a |TestChromeBrowserProvider|.
22 static TestChromeBrowserProvider* GetTestProvider();
23
24 // ChromeBrowserProvider:
25 StringProvider* GetStringProvider() override;
26 const char* GetChromeUIScheme() override;
27
28 private:
29 scoped_ptr<FakeStringProvider> string_provider_;
30
31 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserProvider);
32 };
33
34 } // namespace ios
35
36 #endif // IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698