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

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

Issue 10987100: Switch AutofillManager to be UserData on WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/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 0c7c934836f6637714b052ac63fc6533c196c141..5a876614c334d86ab6285d2675ba93be358a94d8 100644
--- a/chrome/browser/autofill/autofill_external_delegate_unittest.cc
+++ b/chrome/browser/autofill/autofill_external_delegate_unittest.cc
@@ -63,11 +63,11 @@ class MockAutofillExternalDelegate : public TestAutofillExternalDelegate {
class MockAutofillManager : public AutofillManager {
public:
- explicit MockAutofillManager(autofill::AutofillManagerDelegate* delegate,
- TabContents* tab_contents)
+ explicit MockAutofillManager(content::WebContents* web_contents,
+ autofill::AutofillManagerDelegate* delegate)
// Force to use the constructor designated for unit test, but we don't
// really need personal_data in this test so we pass a NULL pointer.
- : AutofillManager(delegate, tab_contents, NULL) {
+ : AutofillManager(web_contents, delegate, NULL) {
}
MOCK_METHOD4(OnFillAutofillFormData,
@@ -92,8 +92,8 @@ class AutofillExternalDelegateUnitTest : public TabContentsTestHarness {
TabContentsTestHarness::SetUp();
TabAutofillManagerDelegate::CreateForWebContents(web_contents());
autofill_manager_ = new MockAutofillManager(
- TabAutofillManagerDelegate::FromWebContents(web_contents()),
- tab_contents());
+ web_contents(),
+ TabAutofillManagerDelegate::FromWebContents(web_contents()));
external_delegate_.reset(new MockAutofillExternalDelegate(
tab_contents(),
autofill_manager_));

Powered by Google App Engine
This is Rietveld 408576698