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

Unified Diff: chrome/browser/autofill/autofill_external_delegate_unittest.cc

Issue 11185011: Remove TabContents from autofill unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: de(r)ps Created 8 years, 2 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/autofill/autofill_external_delegate_unittest.cc
diff --git a/chrome/browser/autofill/autofill_external_delegate_unittest.cc b/chrome/browser/autofill/autofill_external_delegate_unittest.cc
index 9085167e35fe6627f427ae3997527a827c056ff3..eedc4b6f403d75b19d1f50e0af31dfea6e47f825 100644
--- a/chrome/browser/autofill/autofill_external_delegate_unittest.cc
+++ b/chrome/browser/autofill/autofill_external_delegate_unittest.cc
@@ -10,9 +10,9 @@
#include "chrome/browser/autofill/autofill_manager.h"
#include "chrome/browser/autofill/test_autofill_external_delegate.h"
#include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h"
-#include "chrome/browser/ui/tab_contents/test_tab_contents.h"
#include "chrome/common/form_data.h"
#include "chrome/common/form_field_data.h"
+#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/test_browser_thread.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -80,7 +80,8 @@ class MockAutofillManager : public AutofillManager {
} // namespace
-class AutofillExternalDelegateUnitTest : public TabContentsTestHarness {
+class AutofillExternalDelegateUnitTest
+ : public ChromeRenderViewHostTestHarness {
public:
AutofillExternalDelegateUnitTest()
: ui_thread_(BrowserThread::UI, &message_loop_) {}
@@ -108,7 +109,7 @@ class AutofillExternalDelegateUnitTest : public TabContentsTestHarness {
private:
virtual void SetUp() OVERRIDE {
- TabContentsTestHarness::SetUp();
+ ChromeRenderViewHostTestHarness::SetUp();
TabAutofillManagerDelegate::CreateForWebContents(web_contents());
autofill_manager_ = new MockAutofillManager(
web_contents(),
@@ -124,7 +125,7 @@ class AutofillExternalDelegateUnitTest : public TabContentsTestHarness {
// AutofillManager is tied to the lifetime of the WebContents, so it must
// be destroyed at the destruction of the WebContents.
autofill_manager_ = NULL;
- TabContentsTestHarness::TearDown();
+ ChromeRenderViewHostTestHarness::TearDown();
}
content::TestBrowserThread ui_thread_;
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate.cc ('k') | chrome/browser/autofill/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698