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

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

Issue 133893004: Allow deleting autofill password suggestions on Shift+Delete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow deleting autofill password suggestions on Shift+Delete Created 6 years, 11 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: components/autofill/core/browser/autofill_manager_unittest.cc
diff --git a/components/autofill/core/browser/autofill_manager_unittest.cc b/components/autofill/core/browser/autofill_manager_unittest.cc
index 138f7d4ab9531e4ab13017050c9c129c0d5ff221..787fdee2f733a4e8ee4f96f0593b492e4c5505b2 100644
--- a/components/autofill/core/browser/autofill_manager_unittest.cc
+++ b/components/autofill/core/browser/autofill_manager_unittest.cc
@@ -41,6 +41,7 @@
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_field_data.h"
#include "components/autofill/core/common/forms_seen_state.h"
+#include "components/autofill/core/common/password_form.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/mock_render_process_host.h"
@@ -543,6 +544,7 @@ class TestAutofillExternalDelegate : public AutofillExternalDelegate {
virtual void OnQuery(int query_id,
const FormData& form,
const FormFieldData& field,
+ const PasswordForm& passwordform,
const gfx::RectF& bounds,
bool display_warning) OVERRIDE {
on_query_seen_ = true;
@@ -659,9 +661,11 @@ class AutofillManagerTest : public ChromeRenderViewHostTestHarness {
void GetAutofillSuggestions(int query_id,
const FormData& form,
const FormFieldData& field) {
+ PasswordForm passwordform;
autofill_manager_->OnQueryFormFieldAutofill(query_id,
form,
field,
+ passwordform,
gfx::Rect(),
false);
}

Powered by Google App Engine
This is Rietveld 408576698