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

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: fix mac 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() {
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 }
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_render_view_host_test_harness.h ('k') | content/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698