| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/browser/renderer_host/test_render_view_host.h" | 10 #include "content/test/test_renderer_host.h" |
| 11 | 11 |
| 12 class TestingProfile; | 12 class TestingProfile; |
| 13 | 13 |
| 14 // Wrapper around RenderViewHostTestHarness that uses a TestingProfile as | 14 // Wrapper around RenderViewHostTestHarness that uses a TestingProfile as |
| 15 // browser context instead of a TestBrowserContext. | 15 // browser context instead of a TestBrowserContext. |
| 16 class ChromeRenderViewHostTestHarness : public RenderViewHostTestHarness { | 16 class ChromeRenderViewHostTestHarness : public RenderViewHostTestHarness { |
| 17 public: | 17 public: |
| 18 ChromeRenderViewHostTestHarness(); | 18 ChromeRenderViewHostTestHarness(); |
| 19 virtual ~ChromeRenderViewHostTestHarness(); | 19 virtual ~ChromeRenderViewHostTestHarness(); |
| 20 | 20 |
| 21 TestingProfile* profile(); | 21 TestingProfile* profile(); |
| 22 | 22 |
| 23 content::RenderViewHostTester* rvh_tester(); |
| 24 |
| 23 protected: | 25 protected: |
| 24 // testing::Test | 26 // testing::Test |
| 25 virtual void SetUp() OVERRIDE; | 27 virtual void SetUp() OVERRIDE; |
| 26 virtual void TearDown() OVERRIDE; | 28 virtual void TearDown() OVERRIDE; |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 #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 |