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

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

Issue 9706012: Add abstractions that let embedders drive tests of WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove CONTENT_EXPORT on statically linked functions. Merge to head for commit. Created 8 years, 9 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/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/autofill_metrics_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager_unittest.cc
diff --git a/chrome/browser/autofill/autofill_manager_unittest.cc b/chrome/browser/autofill/autofill_manager_unittest.cc
index 29384281991dfd3998b2ba3ba59a3675c9040af1..a50cff2ecb52e431e35f3bc2012d74a4ed0d628a 100644
--- a/chrome/browser/autofill/autofill_manager_unittest.cc
+++ b/chrome/browser/autofill/autofill_manager_unittest.cc
@@ -30,7 +30,7 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_profile.h"
-#include "content/browser/tab_contents/test_tab_contents.h"
+#include "content/public/browser/web_contents.h"
#include "content/test/mock_render_process_host.h"
#include "content/test/test_browser_thread.h"
#include "googleurl/src/gurl.h"
@@ -44,6 +44,7 @@
#include "webkit/forms/form_field.h"
using content::BrowserThread;
+using content::WebContents;
using testing::_;
using webkit::forms::FormData;
using webkit::forms::FormField;
@@ -2916,7 +2917,7 @@ TEST_F(AutofillManagerTest, TestTabContentsWithExternalDelegate) {
switches::kExternalAutofillPopup);
// Setting the contents creates a new TabContentsWrapper.
- TestTabContents* contents = CreateTestTabContents();
+ WebContents* contents = CreateTestWebContents();
SetContents(contents);
AutofillManager* autofill_manager = contents_wrapper()->autofill_manager();
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698