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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/sad_tab_controller_unittest.mm

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
Index: chrome/browser/ui/cocoa/tab_contents/sad_tab_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller_unittest.mm b/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller_unittest.mm
index 06d62f6878cd367dcc60db3f76612812635edf80..0ddf62f97efb07933de304d9d34ac17820d3fa16 100644
--- a/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/tab_contents/sad_tab_controller_unittest.mm
@@ -8,8 +8,8 @@
#import "chrome/browser/ui/cocoa/hyperlink_text_view.h"
#import "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h"
#import "chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h"
+#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
-#include "content/browser/renderer_host/test_render_view_host.h"
#include "content/browser/tab_contents/test_tab_contents.h"
@interface SadTabView (ExposedForTesting)
@@ -25,16 +25,16 @@
namespace {
-class SadTabControllerTest : public RenderViewHostTestHarness {
+class SadTabControllerTest : public ChromeRenderViewHostTestHarness {
public:
SadTabControllerTest() : test_window_(nil) {
link_clicked_ = false;
}
virtual void SetUp() {
- RenderViewHostTestHarness::SetUp();
- // Inherting from RenderViewHostTestHarness means we can't inherit from
- // from CocoaTest, so do a bootstrap and create test window.
+ ChromeRenderViewHostTestHarness::SetUp();
+ // Inherting from ChromeRenderViewHostTestHarness means we can't inherit
+ // from from CocoaTest, so do a bootstrap and create test window.
CocoaTest::BootstrapCocoa();
test_window_ = [[CocoaTestHelperWindow alloc] init];
if (base::debug::BeingDebugged()) {
@@ -47,7 +47,7 @@ class SadTabControllerTest : public RenderViewHostTestHarness {
virtual void TearDown() {
[test_window_ close];
test_window_ = nil;
- RenderViewHostTestHarness::TearDown();
+ ChromeRenderViewHostTestHarness::TearDown();
}
// Creates the controller and adds its view to contents, caller has ownership.

Powered by Google App Engine
This is Rietveld 408576698