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

Unified Diff: components/autofill/core/browser/autofill_external_delegate_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: 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_external_delegate_unittest.cc
diff --git a/components/autofill/core/browser/autofill_external_delegate_unittest.cc b/components/autofill/core/browser/autofill_external_delegate_unittest.cc
index fe0f6f712747a02e90f9a81c4158466ea234d1e0..7c120862a64e8ca7428c72f9fa9bac048389dff6 100644
--- a/components/autofill/core/browser/autofill_external_delegate_unittest.cc
+++ b/components/autofill/core/browser/autofill_external_delegate_unittest.cc
@@ -19,6 +19,7 @@
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/web/WebAutofillClient.h"
+#include "third_party/WebKit/public/web/WebFormElement.h"
#include "ui/gfx/rect.h"
using testing::_;
@@ -129,9 +130,11 @@ class AutofillExternalDelegateUnitTest
FormFieldData field;
field.is_focusable = true;
field.should_autocomplete = true;
+ blink::WebFormElement webformelement;
const gfx::RectF element_bounds;
- external_delegate_->OnQuery(query_id, form, field, element_bounds, true);
+ external_delegate_->OnQuery(query_id, form, field, webformelement,
+ element_bounds, true);
}
MockAutofillManagerDelegate manager_delegate_;
@@ -325,9 +328,11 @@ TEST_F(AutofillExternalDelegateUnitTest, NoAutofillWarningsWithoutSuggestions) {
FormFieldData field;
field.is_focusable = true;
field.should_autocomplete = false;
+ blink::WebFormElement webformelement;
const gfx::RectF element_bounds;
- external_delegate_->OnQuery(kQueryId, form, field, element_bounds, true);
+ external_delegate_->OnQuery(kQueryId, form, webformelement, field,
+ element_bounds, true);
EXPECT_CALL(manager_delegate_,
ShowAutofillPopup(_, _, _, _, _, _, _)).Times(0);
@@ -421,9 +426,11 @@ TEST_F(AutofillExternalDelegateUnitTest, ExternalDelegatePasswordSuggestions) {
WebAutofillClient::MenuItemIDPasswordEntry)),
_));
+ blink::WebFormElement webformelement;
external_delegate_->OnShowPasswordSuggestions(suggestions,
realms,
field,
+ webformelement,
element_bounds);
EXPECT_CALL(manager_delegate_, HideAutofillPopup());
@@ -464,9 +471,11 @@ TEST_F(AutofillExternalDelegateUnitTest, ExternalDelegateHideWarning) {
FormFieldData field;
field.is_focusable = true;
field.should_autocomplete = false;
+ blink::WebFormElement webformelement;
const gfx::RectF element_bounds;
- external_delegate_->OnQuery(kQueryId, form, field, element_bounds, false);
+ external_delegate_->OnQuery(kQueryId, form, field, webformelement,
+ element_bounds, false);
std::vector<base::string16> autofill_items;
autofill_items.push_back(base::string16());

Powered by Google App Engine
This is Rietveld 408576698