summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_manager_unittest.cc
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-22 13:04:48 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-22 13:04:48 +0000
commit46a32b92e76b665e79bc3ee3b309766a47dbcf9d (patch)
treeef7bab9dc47d5a2473ac07f3998357b08106fd73 /chrome/browser/autofill/autofill_manager_unittest.cc
parent2e0a8e5d4e235bac3a687e289de5bdfb6399a1e9 (diff)
downloadchromium_src-46a32b92e76b665e79bc3ee3b309766a47dbcf9d.zip
chromium_src-46a32b92e76b665e79bc3ee3b309766a47dbcf9d.tar.gz
chromium_src-46a32b92e76b665e79bc3ee3b309766a47dbcf9d.tar.bz2
Add abstractions that let embedders drive tests of WebContents, without exposing the internals of content/.
A separate WebContentsTester interface is used. For reasons this approach was chosen, see comments on the interface. As part of this work, removed a bunch of references to TabContents from Chrome, some of which were true usages (leaked to Chrome via the test_tab_contents.h header), others of which were just forward declarations and never used. Also removed a chunk of code from autofill_manager.cc that isn't called from anywhere that referenced TabContents. TBR=ben@chromium.org BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9706012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128198 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_manager_unittest.cc')
-rw-r--r--chrome/browser/autofill/autofill_manager_unittest.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/autofill/autofill_manager_unittest.cc b/chrome/browser/autofill/autofill_manager_unittest.cc
index 2938428..a50cff2 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();