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

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: fix external delegate 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
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate.cc ('k') | chrome/browser/autofill/autofill_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 282ec0de4913d42b587a873d1df9a2d6d92b51f1..b05155700029bbc68e738de64ac183105c8ed484 100644
--- a/chrome/browser/autofill/autofill_external_delegate_unittest.cc
+++ b/chrome/browser/autofill/autofill_external_delegate_unittest.cc
@@ -61,11 +61,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,
@@ -90,8 +90,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_));
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate.cc ('k') | chrome/browser/autofill/autofill_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698