Lines Matching refs:scenario
626 for (const auto& scenario : cases) { in TEST() local
627 string16 str = ASCIIToUTF16(scenario.str); in TEST()
628 ReplaceSubstringsAfterOffset(&str, scenario.start_offset, in TEST()
629 ASCIIToUTF16(scenario.find_this), in TEST()
630 ASCIIToUTF16(scenario.replace_with)); in TEST()
631 EXPECT_EQ(ASCIIToUTF16(scenario.expected), str); in TEST()
635 for (const auto& scenario : cases) { in TEST() local
636 std::string str = scenario.str.as_string(); in TEST()
638 ReplaceSubstringsAfterOffset(&str, scenario.start_offset, in TEST()
639 scenario.find_this, scenario.replace_with); in TEST()
640 EXPECT_EQ(scenario.expected, str); in TEST()
644 for (const auto& scenario : cases) { in TEST() local
645 std::string str = scenario.str.as_string(); in TEST()
646 str.reserve(std::max(scenario.str.length(), scenario.expected.length()) * in TEST()
649 ReplaceSubstringsAfterOffset(&str, scenario.start_offset, in TEST()
650 scenario.find_this, scenario.replace_with); in TEST()
651 EXPECT_EQ(scenario.expected, str); in TEST()
1243 for (const TestData& scenario : cases) { in TEST() local
1246 bool result = ReplaceChars(scenario.input, scenario.replace_chars, in TEST()
1247 scenario.replace_with, &output); in TEST()
1248 EXPECT_EQ(scenario.result, result) << scenario.input; in TEST()
1249 EXPECT_EQ(scenario.output, output); in TEST()
1252 for (const TestData& scenario : cases) { in TEST() local
1254 std::string input_output = scenario.input; in TEST()
1256 bool result = ReplaceChars(input_output, scenario.replace_chars, in TEST()
1257 scenario.replace_with, &input_output); in TEST()
1258 EXPECT_EQ(scenario.result, result) << scenario.input; in TEST()
1259 EXPECT_EQ(scenario.output, input_output); in TEST()
1262 for (const TestData& scenario : cases) { in TEST() local
1265 std::string input_output = scenario.input; in TEST()
1266 input_output.reserve(strlen(scenario.output) * 2); in TEST()
1268 bool result = ReplaceChars(input_output, scenario.replace_chars, in TEST()
1269 scenario.replace_with, &input_output); in TEST()
1270 EXPECT_EQ(scenario.result, result) << scenario.input; in TEST()
1271 EXPECT_EQ(scenario.output, input_output); in TEST()