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

Unified Diff: chrome/browser/autofill/autofill_external_delegate_unittest.cc

Issue 12188020: Adding the page and DPI scale adjustment for Autofill Popups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mock call fix #2 Created 7 years, 10 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: 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 5535debe523387910996244e871cffb3d1e6c910..8e0a3fe7b597a6b4ece280eb8a311cc7a4a5bffb 100644
--- a/chrome/browser/autofill/autofill_external_delegate_unittest.cc
+++ b/chrome/browser/autofill/autofill_external_delegate_unittest.cc
@@ -48,7 +48,7 @@ class MockAutofillExternalDelegate :
MOCK_METHOD0(ClearPreviewedForm, void());
- MOCK_METHOD1(EnsurePopupForElement, void(const gfx::Rect& element_bounds));
+ MOCK_METHOD1(EnsurePopupForElement, void(const gfx::RectF& element_bounds));
MOCK_METHOD0(HideAutofillPopup, void());
};
@@ -89,7 +89,7 @@ class AutofillExternalDelegateUnitTest
FormFieldData field;
field.is_focusable = true;
field.should_autocomplete = true;
- const gfx::Rect element_bounds;
+ const gfx::RectF element_bounds;
EXPECT_CALL(*external_delegate_, EnsurePopupForElement(element_bounds));
external_delegate_->OnQuery(query_id, form, field, element_bounds, false);
@@ -266,7 +266,7 @@ TEST_F(AutofillExternalDelegateUnitTest, ExternalDelegatePasswordSuggestions) {
FormFieldData field;
field.is_focusable = true;
field.should_autocomplete = true;
- const gfx::Rect element_bounds;
+ const gfx::RectF element_bounds;
EXPECT_CALL(*external_delegate_, EnsurePopupForElement(element_bounds));

Powered by Google App Engine
This is Rietveld 408576698