OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
| 6 |
| 7 #include "chrome/test/base/testing_profile.h" |
| 8 |
| 9 ChromeRenderViewHostTestHarness::ChromeRenderViewHostTestHarness() |
| 10 : RenderViewHostTestHarness() { |
| 11 } |
| 12 |
| 13 ChromeRenderViewHostTestHarness::~ChromeRenderViewHostTestHarness() { |
| 14 } |
| 15 |
| 16 TestingProfile* ChromeRenderViewHostTestHarness::profile() { |
| 17 return static_cast<TestingProfile*>(browser_context_.get()); |
| 18 } |
| 19 |
| 20 void ChromeRenderViewHostTestHarness::SetUp() { |
| 21 if (!browser_context_.get()) |
| 22 browser_context_.reset(new TestingProfile()); |
| 23 RenderViewHostTestHarness::SetUp(); |
| 24 } |
| 25 |
| 26 void ChromeRenderViewHostTestHarness::TearDown() { |
| 27 RenderViewHostTestHarness::TearDown(); |
| 28 } |
OLD | NEW |