Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: chrome/test/base/chrome_render_view_host_test_harness.cc

Issue 7892007: Add ChromeRenderViewHostTestHarness to get rid of the dependency from RVHTH to profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698