diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-30 00:33:10 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-30 00:33:10 +0000 |
commit | 8d4cc15e95bdce1ec41b68c2b1cc5685642c39e0 (patch) | |
tree | 0e00e143095ae775ee1ba1cc886c9142ae06f82f /chrome/browser/autofill/autofill_external_delegate_unittest.cc | |
parent | c1a47df6521776547b5a3a9966dba63aab9e2e6b (diff) | |
download | chromium_src-8d4cc15e95bdce1ec41b68c2b1cc5685642c39e0.zip chromium_src-8d4cc15e95bdce1ec41b68c2b1cc5685642c39e0.tar.gz chromium_src-8d4cc15e95bdce1ec41b68c2b1cc5685642c39e0.tar.bz2 |
Introduce AutofillClient and use it to get rid of PasswordManager dependency.
Also, this switches use of InfoBarTabService and PrefServiceBase in
AutofillManager from calling their ::ForXyz methods, to retrieving
them via AutofillClient.
BUG=140037
Review URL: https://chromiumcodereview.appspot.com/10837363
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154022 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_external_delegate_unittest.cc')
-rw-r--r-- | chrome/browser/autofill/autofill_external_delegate_unittest.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/autofill/autofill_external_delegate_unittest.cc b/chrome/browser/autofill/autofill_external_delegate_unittest.cc index 0e6183d..86ae8ee 100644 --- a/chrome/browser/autofill/autofill_external_delegate_unittest.cc +++ b/chrome/browser/autofill/autofill_external_delegate_unittest.cc @@ -9,6 +9,7 @@ #include "base/string16.h" #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/test/base/testing_profile.h" #include "content/public/test/test_browser_thread.h" @@ -65,7 +66,9 @@ class MockAutofillManager : public AutofillManager { explicit MockAutofillManager(TabContents* tab_contents) // 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(tab_contents, NULL) {} + : AutofillManager(&delegate_, tab_contents, NULL), + delegate_(tab_contents) { + } MOCK_METHOD4(OnFillAutofillFormData, void(int query_id, @@ -75,6 +78,9 @@ class MockAutofillManager : public AutofillManager { protected: virtual ~MockAutofillManager() {} + + private: + TabAutofillManagerDelegate delegate_; }; } // namespace |