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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/chrome_render_view_host_test_harness.cc
diff --git a/chrome/test/base/chrome_render_view_host_test_harness.cc b/chrome/test/base/chrome_render_view_host_test_harness.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d75bb8d0fe62efbba10457ac9aeab8c4d23d67d4
--- /dev/null
+++ b/chrome/test/base/chrome_render_view_host_test_harness.cc
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/test/base/chrome_render_view_host_test_harness.h"
+
+#include "chrome/test/base/testing_profile.h"
+
+ChromeRenderViewHostTestHarness::ChromeRenderViewHostTestHarness()
+ : RenderViewHostTestHarness() {
+}
+
+ChromeRenderViewHostTestHarness::~ChromeRenderViewHostTestHarness() {
+}
+
+TestingProfile* ChromeRenderViewHostTestHarness::profile() {
+ return static_cast<TestingProfile*>(browser_context_.get());
+}
+
+void ChromeRenderViewHostTestHarness::SetUp() {
+ if (!browser_context_.get())
+ browser_context_.reset(new TestingProfile());
+ RenderViewHostTestHarness::SetUp();
+}
+
+void ChromeRenderViewHostTestHarness::TearDown() {
+ RenderViewHostTestHarness::TearDown();
+}
« 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