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

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

Issue 1260033003: Partially componentize //chrome/browser/search/search.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on iOS Created 5 years, 4 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 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 FakeSearchProvider;
15 class FakeStringProvider; 14 class FakeStringProvider;
16 15
17 class TestChromeBrowserProvider : public ChromeBrowserProvider { 16 class TestChromeBrowserProvider : public ChromeBrowserProvider {
18 public: 17 public:
19 TestChromeBrowserProvider(); 18 TestChromeBrowserProvider();
20 ~TestChromeBrowserProvider() override; 19 ~TestChromeBrowserProvider() override;
21 20
22 // Returns the current provider as a |TestChromeBrowserProvider|. 21 // Returns the current provider as a |TestChromeBrowserProvider|.
23 static TestChromeBrowserProvider* GetTestProvider(); 22 static TestChromeBrowserProvider* GetTestProvider();
24 23
25 // ChromeBrowserProvider: 24 // ChromeBrowserProvider:
26 StringProvider* GetStringProvider() override; 25 StringProvider* GetStringProvider() override;
27 const char* GetChromeUIScheme() override; 26 const char* GetChromeUIScheme() override;
28 SearchProvider* GetSearchProvider() override;
29 27
30 private: 28 private:
31 scoped_ptr<FakeStringProvider> string_provider_; 29 scoped_ptr<FakeStringProvider> string_provider_;
32 scoped_ptr<FakeSearchProvider> search_provider_;
33 30
34 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserProvider); 31 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserProvider);
35 }; 32 };
36 33
37 } // namespace ios 34 } // namespace ios
38 35
39 #endif // IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_ 36 #endif // IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_
OLDNEW
« no previous file with comments | « ios/public/test/fake_search_provider.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