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

Unified Diff: components/autofill/core/browser/autocomplete_history_manager_unittest.cc

Issue 79103002: Abstracted AcceptPasswordAutofillSuggestion IPC out of core Autofill code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes. Created 7 years, 1 month 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: components/autofill/core/browser/autocomplete_history_manager_unittest.cc
diff --git a/components/autofill/core/browser/autocomplete_history_manager_unittest.cc b/components/autofill/core/browser/autocomplete_history_manager_unittest.cc
index 8fd5a3a7d846514249921631ec8920dd8633b981..7fd26a781873649836ad6ab139a77be9004fa050 100644
--- a/components/autofill/core/browser/autocomplete_history_manager_unittest.cc
+++ b/components/autofill/core/browser/autocomplete_history_manager_unittest.cc
@@ -29,7 +29,6 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/rect.h"
-using content::WebContents;
using testing::_;
namespace autofill {
@@ -182,11 +181,9 @@ namespace {
class MockAutofillExternalDelegate : public AutofillExternalDelegate {
public:
- MockAutofillExternalDelegate(content::WebContents* web_contents,
- AutofillManager* autofill_manager,
+ MockAutofillExternalDelegate(AutofillManager* autofill_manager,
AutofillDriver* autofill_driver)
- : AutofillExternalDelegate(web_contents, autofill_manager,
- autofill_driver) {}
+ : AutofillExternalDelegate(autofill_manager, autofill_driver) {}
virtual ~MockAutofillExternalDelegate() {}
MOCK_METHOD5(OnSuggestionsReturned,
@@ -225,8 +222,7 @@ TEST_F(AutocompleteHistoryManagerTest, ExternalDelegate) {
"en-US",
AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER));
- MockAutofillExternalDelegate external_delegate(web_contents(),
- autofill_manager.get(),
+ MockAutofillExternalDelegate external_delegate(autofill_manager.get(),
autofill_driver_.get());
autocomplete_history_manager.SetExternalDelegate(&external_delegate);
« no previous file with comments | « components/autofill/content/renderer/password_autofill_agent.cc ('k') | components/autofill/core/browser/autofill_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698