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

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

Issue 6625087: Convert autofill messages to use the new IPC macros (again). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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
« no previous file with comments | « chrome/browser/autofill/autofill_field.cc ('k') | chrome/browser/autofill/autofill_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_field_unittest.cc
===================================================================
--- chrome/browser/autofill/autofill_field_unittest.cc (revision 77304)
+++ chrome/browser/autofill/autofill_field_unittest.cc (working copy)
@@ -33,30 +33,30 @@
TEST(AutofillFieldTest, IsEmpty) {
AutofillField field;
- ASSERT_EQ(string16(), field.value());
+ ASSERT_EQ(string16(), field.value);
// Field value is empty.
EXPECT_TRUE(field.IsEmpty());
// Field value is non-empty.
- field.set_value(ASCIIToUTF16("Value"));
+ field.value = ASCIIToUTF16("Value");
EXPECT_FALSE(field.IsEmpty());
}
TEST(AutofillFieldTest, FieldSignature) {
AutofillField field;
- ASSERT_EQ(string16(), field.name());
- ASSERT_EQ(string16(), field.form_control_type());
+ ASSERT_EQ(string16(), field.name);
+ ASSERT_EQ(string16(), field.form_control_type);
// Signature is empty.
EXPECT_EQ("2085434232", field.FieldSignature());
// Field name is set.
- field.set_name(ASCIIToUTF16("Name"));
+ field.name = ASCIIToUTF16("Name");
EXPECT_EQ("1606968241", field.FieldSignature());
// Field form control type is set.
- field.set_form_control_type(ASCIIToUTF16("Text"));
+ field.form_control_type = ASCIIToUTF16("Text");
EXPECT_EQ("4246049809", field.FieldSignature());
// Heuristic type does not affect FieldSignature.
« no previous file with comments | « chrome/browser/autofill/autofill_field.cc ('k') | chrome/browser/autofill/autofill_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698