OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_ | 5 #ifndef CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_ |
6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_ | 6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_ |
7 | 7 |
8 #include <memory> | |
9 | |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "content/public/test/test_renderer_host.h" | 11 #include "content/public/test/test_renderer_host.h" |
12 #include "ui/views/test/test_views_delegate.h" | |
10 | 13 |
11 class TestingProfile; | 14 class TestingProfile; |
12 | 15 |
13 // Wrapper around RenderViewHostTestHarness that uses a TestingProfile as | 16 // Wrapper around RenderViewHostTestHarness that uses a TestingProfile as |
14 // browser context instead of a TestBrowserContext. | 17 // browser context instead of a TestBrowserContext. |
15 class ChromeRenderViewHostTestHarness | 18 class ChromeRenderViewHostTestHarness |
16 : public content::RenderViewHostTestHarness { | 19 : public content::RenderViewHostTestHarness { |
17 public: | 20 public: |
18 ChromeRenderViewHostTestHarness(); | 21 ChromeRenderViewHostTestHarness(); |
19 ~ChromeRenderViewHostTestHarness() override; | 22 ~ChromeRenderViewHostTestHarness() override; |
20 | 23 |
21 TestingProfile* profile(); | 24 TestingProfile* profile(); |
22 | 25 |
23 protected: | 26 protected: |
24 // testing::Test | 27 // testing::Test |
25 void TearDown() override; | 28 void TearDown() override; |
26 | 29 |
27 // content::RenderViewHostTestHarness. | 30 // content::RenderViewHostTestHarness. |
28 content::BrowserContext* CreateBrowserContext() override; | 31 content::BrowserContext* CreateBrowserContext() override; |
32 | |
33 private: | |
34 std::unique_ptr<views::TestViewsDelegate> views_delegate_; | |
Peter Kasting
2017/02/28 02:44:04
Yeah, pretty sure this can't be here, as RVH tests
| |
29 }; | 35 }; |
30 | 36 |
31 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_ | 37 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_ |
OLD | NEW |