Lines Matching defs:in
3 // found in the LICENSE file.
47 std::string in = cases[0].to_escape;
49 EscapeJSONString(in, false, &out);
54 EscapeJSONString(in, true, &out_quoted);
59 // now try with a NULL in the string
62 in = null_prepend + in;
66 EscapeJSONString(in, false, &out);
85 string16 in = WideToUTF16(cases[i].to_escape);
88 EscapeJSONString(in, false, &out);
92 out = GetQuotedJSONString(in);
97 string16 in = WideToUTF16(cases[0].to_escape);
99 EscapeJSONString(in, false, &out);
104 EscapeJSONString(in, true, &out_quoted);
109 // now try with a NULL in the string
112 in = null_prepend + in;
116 EscapeJSONString(in, false, &out);
166 std::string in = std::string(cases[i].to_escape);
167 EXPECT_FALSE(IsStringUTF8(in));
170 EscapeBytesAsInvalidJSONString(in, false));
172 EscapeBytesAsInvalidJSONString(in, true));
176 std::string in(kEmbedNull, ARRAYSIZE_UNSAFE(kEmbedNull));
177 EXPECT_FALSE(IsStringUTF8(in));
179 EscapeBytesAsInvalidJSONString(in, false));