| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "content/public/test/test_renderer_host.h" | 9 #include "content/public/test/test_renderer_host.h" |
| 10 | 10 |
| 11 class TestingProfile; | 11 class TestingProfile; |
| 12 | 12 |
| 13 namespace content { | |
| 14 class WebContents; | |
| 15 } | |
| 16 | |
| 17 // Wrapper around RenderViewHostTestHarness that uses a TestingProfile as | 13 // Wrapper around RenderViewHostTestHarness that uses a TestingProfile as |
| 18 // browser context instead of a TestBrowserContext. | 14 // browser context instead of a TestBrowserContext. |
| 19 class ChromeRenderViewHostTestHarness | 15 class ChromeRenderViewHostTestHarness |
| 20 : public content::RenderViewHostTestHarness { | 16 : public content::RenderViewHostTestHarness { |
| 21 public: | 17 public: |
| 22 ChromeRenderViewHostTestHarness(); | 18 ChromeRenderViewHostTestHarness(); |
| 23 ~ChromeRenderViewHostTestHarness() override; | 19 ~ChromeRenderViewHostTestHarness() override; |
| 24 | 20 |
| 25 TestingProfile* profile(); | 21 TestingProfile* profile(); |
| 26 | 22 |
| 27 protected: | 23 protected: |
| 28 // testing::Test | 24 // testing::Test |
| 29 void TearDown() override; | 25 void TearDown() override; |
| 30 | 26 |
| 31 // content::RenderViewHostTestHarness. | 27 // content::RenderViewHostTestHarness. |
| 32 content::BrowserContext* CreateBrowserContext() override; | 28 content::BrowserContext* CreateBrowserContext() override; |
| 33 }; | 29 }; |
| 34 | 30 |
| 35 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_ | 31 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_HOST_TEST_HARNESS_H_ |
| OLD | NEW |