Chromium Code Reviews| 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() { | |
|
Paweł Hajdan Jr.
2011/09/13 19:16:36
nit: Needed?
| |
| 11 } | |
| 12 | |
| 13 ChromeRenderViewHostTestHarness::~ChromeRenderViewHostTestHarness() { | |
| 14 } | |
| 15 | |
| 16 TestingProfile* ChromeRenderViewHostTestHarness::profile() { | |
| 17 return browser_context_.get() ? | |
|
Paweł Hajdan Jr.
2011/09/13 19:16:36
Why don't just static_cast always? Casting NULL sh
| |
| 18 static_cast<TestingProfile*>(browser_context_.get()) : NULL; | |
| 19 } | |
| 20 | |
| 21 void ChromeRenderViewHostTestHarness::SetUp() { | |
| 22 if (!browser_context_.get()) | |
| 23 browser_context_.reset(new TestingProfile()); | |
| 24 RenderViewHostTestHarness::SetUp(); | |
| 25 } | |
| 26 | |
| 27 void ChromeRenderViewHostTestHarness::TearDown() { | |
| 28 RenderViewHostTestHarness::TearDown(); | |
| 29 } | |
| OLD | NEW |