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

Unified Diff: components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc

Issue 2166773002: [Password Generation] Add FormFieldData.css_classes to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo Created 4 years, 5 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/content/public/cpp/autofill_types_struct_traits_unittest.cc
diff --git a/components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc b/components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc
index cc5f981e1ba7867409f7d354a57c2842f97bb838..70801ee0cc543a36d643325791a038712c88a048 100644
--- a/components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc
+++ b/components/autofill/content/public/cpp/autofill_types_struct_traits_unittest.cc
@@ -326,6 +326,16 @@ TEST_F(AutofillTypeTraitsTestImpl, PassFormFieldData) {
FormFieldData input;
test::CreateTestSelectField("TestLabel", "TestName", "TestValue", kOptions,
kOptions, 4, &input);
+ // Set other attributes to check if they are passed correctly.
+ input.autocomplete_attribute = "on";
+ input.placeholder = base::ASCIIToUTF16("placeholder");
+ input.css_classes = base::ASCIIToUTF16("class1");
+ input.max_length = 12345;
+ input.is_autofilled = true;
+ input.check_status = FormFieldData::CHECKED;
+ input.should_autocomplete = true;
+ input.role = FormFieldData::ROLE_ATTRIBUTE_PRESENTATION;
+ input.text_direction = base::i18n::RIGHT_TO_LEFT;
base::RunLoop loop;
mojom::TypeTraitsTestPtr proxy = GetTypeTraitsTestProxy();

Powered by Google App Engine
This is Rietveld 408576698