Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ios / public / test / test_chrome_browser_provider.h
blobf3bf1634156709918d94d7bc02051b16f9657f6f
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.
5 #ifndef IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_
6 #define IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
11 namespace ios {
13 class FakeProfileOAuth2TokenServiceIOSProvider;
14 class FakeSearchProvider;
15 class FakeStringProvider;
17 class TestChromeBrowserProvider : public ChromeBrowserProvider {
18 public:
19 TestChromeBrowserProvider();
20 ~TestChromeBrowserProvider() override;
22 // Returns the current provider as a |TestChromeBrowserProvider|.
23 static TestChromeBrowserProvider* GetTestProvider();
25 // ChromeBrowserProvider:
26 StringProvider* GetStringProvider() override;
27 const char* GetChromeUIScheme() override;
28 SearchProvider* GetSearchProvider() override;
30 private:
31 scoped_ptr<FakeStringProvider> string_provider_;
32 scoped_ptr<FakeSearchProvider> search_provider_;
34 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserProvider);
37 } // namespace ios
39 #endif // IOS_PUBLIC_TEST_TEST_CHROME_BROWSER_PROVIDER_H_