Lines Matching refs:form_structure
255 const FormData& form_structure,
261 form_structure,
604 ASSERT_EQ(20U, form_structure()->field_count());
606 form_structure()->field(11)->Type().GetStorableType());
607 EXPECT_EQ(ADDRESS_BILLING, form_structure()->field(11)->Type().group());
609 form_structure()->field(18)->Type().GetStorableType());
610 EXPECT_EQ(ADDRESS_HOME, form_structure()->field(18)->Type().group());
611 base::string16 billing_country = form_structure()->field(11)->value;
613 base::string16 shipping_country = form_structure()->field(18)->value;
620 form_structure()->field(1)->Type().GetStorableType());
621 base::string16 cc_name = form_structure()->field(1)->value;
622 EXPECT_EQ(NAME_FULL, form_structure()->field(6)->Type().GetStorableType());
623 EXPECT_EQ(NAME_BILLING, form_structure()->field(6)->Type().group());
624 base::string16 billing_name = form_structure()->field(6)->value;
625 EXPECT_EQ(NAME_FULL, form_structure()->field(13)->Type().GetStorableType());
626 EXPECT_EQ(NAME, form_structure()->field(13)->Type().group());
627 base::string16 shipping_name = form_structure()->field(13)->value;
638 const FormStructure* form_structure() { return form_structure_; }
651 const FormStructure* form_structure) {
652 form_structure_ = form_structure;
1280 ASSERT_EQ(20U, form_structure()->field_count());
1282 form_structure()->field(9)->Type().GetStorableType());
1283 EXPECT_EQ(ADDRESS_BILLING, form_structure()->field(9)->Type().group());
1285 form_structure()->field(16)->Type().GetStorableType());
1286 EXPECT_EQ(ADDRESS_HOME, form_structure()->field(16)->Type().group());
1287 base::string16 billing_state = form_structure()->field(9)->value;
1288 base::string16 shipping_state = form_structure()->field(16)->value;
1294 form_structure()->field(1)->Type().GetStorableType());
1295 base::string16 cc_name = form_structure()->field(1)->value;
1296 EXPECT_EQ(NAME_FULL, form_structure()->field(6)->Type().GetStorableType());
1297 EXPECT_EQ(NAME_BILLING, form_structure()->field(6)->Type().group());
1298 base::string16 billing_name = form_structure()->field(6)->value;
1299 EXPECT_EQ(NAME_FULL, form_structure()->field(13)->Type().GetStorableType());
1300 EXPECT_EQ(NAME, form_structure()->field(13)->Type().group());
1301 base::string16 shipping_name = form_structure()->field(13)->value;
1376 ASSERT_EQ(3U, form_structure()->field_count());
1378 form_structure()->field(0)->Type().GetStorableType());
1379 EXPECT_EQ(PHONE_HOME, form_structure()->field(0)->Type().group());
1381 form_structure()->field(1)->Type().GetStorableType());
1382 EXPECT_EQ(PHONE_BILLING, form_structure()->field(1)->Type().group());
1384 form_structure()->field(0)->value);
1386 form_structure()->field(1)->value);
1387 EXPECT_NE(form_structure()->field(1)->value,
1388 form_structure()->field(0)->value);
1431 ASSERT_EQ(5U, form_structure()->field_count());
1433 form_structure()->field(0)->Type().GetStorableType());
1434 EXPECT_EQ(ADDRESS_HOME, form_structure()->field(0)->Type().group());
1436 form_structure()->field(1)->Type().GetStorableType());
1437 EXPECT_EQ(ADDRESS_BILLING, form_structure()->field(1)->Type().group());
1440 EXPECT_TRUE(StartsWith(form_structure()->field(0)->value,
1443 EXPECT_TRUE(EndsWith(form_structure()->field(0)->value,
1446 EXPECT_TRUE(StartsWith(form_structure()->field(1)->value,
1449 EXPECT_TRUE(EndsWith(form_structure()->field(1)->value,
1454 form_structure()->field(2)->value);
1456 form_structure()->field(3)->value);
1458 EXPECT_NE(form_structure()->field(1)->value,
1459 form_structure()->field(0)->value);
1460 EXPECT_NE(form_structure()->field(3)->value,
1461 form_structure()->field(2)->value);
1504 EXPECT_EQ(NAME_FULL, form_structure()->field(0)->Type().GetStorableType());
1506 form_structure()->field(0)->value);
1508 EXPECT_EQ(NAME_FULL, form_structure()->field(1)->Type().GetStorableType());
1510 form_structure()->field(1)->value);
1512 EXPECT_EQ(NAME_FIRST, form_structure()->field(2)->Type().GetStorableType());
1514 form_structure()->field(2)->value);
1516 EXPECT_EQ(NAME_LAST, form_structure()->field(3)->Type().GetStorableType());
1518 form_structure()->field(3)->value);
1520 EXPECT_EQ(NAME_MIDDLE, form_structure()->field(4)->Type().GetStorableType());
1522 form_structure()->field(4)->value);
2210 EXPECT_FALSE(form_structure());
2214 EXPECT_TRUE(form_structure());
2282 // Filling |form_structure()| depends on the current username and wallet items
2298 ASSERT_TRUE(form_structure());
2300 for (; i < form_structure()->field_count(); ++i) {
2301 if (form_structure()->field(i)->Type().GetStorableType() == EMAIL_ADDRESS) {
2302 EXPECT_EQ(ASCIIToUTF16(kFakeEmail), form_structure()->field(i)->value);
2306 EXPECT_LT(i, form_structure()->field_count());
2316 ASSERT_TRUE(form_structure());
2317 ASSERT_EQ(20U, form_structure()->field_count());
2319 form_structure()->field(0)->Type().GetStorableType());
2321 form_structure()->field(2)->Type().GetStorableType());
2323 form_structure()->field(9)->Type().GetStorableType());
2324 EXPECT_EQ(ADDRESS_BILLING, form_structure()->field(9)->Type().group());
2326 form_structure()->field(16)->Type().GetStorableType());
2327 EXPECT_EQ(ADDRESS_HOME, form_structure()->field(16)->Type().group());
2497 EXPECT_TRUE(form_structure());
2524 EXPECT_TRUE(form_structure());
3582 ASSERT_EQ(5U, form_structure()->field_count());
3584 form_structure()->field(1)->Type().GetStorableType());
3585 EXPECT_EQ(ASCIIToUTF16("US"), form_structure()->field(1)->value);
3587 form_structure()->field(2)->Type().GetStorableType());
3588 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(2)->value);
3590 form_structure()->field(3)->Type().GetStorableType());
3591 EXPECT_EQ(ASCIIToUTF16("US"), form_structure()->field(3)->value);
3593 form_structure()->field(4)->Type().GetStorableType());
3594 EXPECT_EQ(ASCIIToUTF16("United States"), form_structure()->field(4)->value);