Lines Matching refs:cases
497 } cases[] = {
509 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i)
510 EXPECT_EQ(cases[i].expected, GetByteDisplayUnits(cases[i].bytes));
519 } cases[] = {
521 // under two pre-decimal digits, except in cases where it makes no
551 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
552 EXPECT_EQ(ASCIIToUTF16(cases[i].expected),
553 FormatBytes(cases[i].bytes, cases[i].units, false));
554 EXPECT_EQ(ASCIIToUTF16(cases[i].expected_with_units),
555 FormatBytes(cases[i].bytes, cases[i].units, true));
566 } cases[] = {
581 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); i++) {
582 string16 str = ASCIIToUTF16(cases[i].str);
583 ReplaceSubstringsAfterOffset(&str, cases[i].start_offset,
584 ASCIIToUTF16(cases[i].find_this),
585 ASCIIToUTF16(cases[i].replace_with));
586 EXPECT_EQ(ASCIIToUTF16(cases[i].expected), str);
597 } cases[] = {
611 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); i++) {
612 string16 str = ASCIIToUTF16(cases[i].str);
613 ReplaceFirstSubstringAfterOffset(&str, cases[i].start_offset,
614 ASCIIToUTF16(cases[i].find_this),
615 ASCIIToUTF16(cases[i].replace_with));
616 EXPECT_EQ(ASCIIToUTF16(cases[i].expected), str);
1031 } cases[] = {
1054 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
1055 EXPECT_EQ(cases[i].portable, base::IsWprintfFormatPortable(cases[i].input));