Lines Matching defs:in
3 // found in the LICENSE file.
52 std::string in = cases[0].to_escape;
54 EscapeJSONString(in, false, &out);
59 EscapeJSONString(in, true, &out_quoted);
64 // now try with a NULL in the string
67 in = null_prepend + in;
71 EscapeJSONString(in, false, &out);
92 string16 in = WideToUTF16(cases[i].to_escape);
95 EscapeJSONString(in, false, &out);
99 out = GetQuotedJSONString(in);
104 string16 in = WideToUTF16(cases[0].to_escape);
106 EscapeJSONString(in, false, &out);
111 EscapeJSONString(in, true, &out_quoted);
116 // now try with a NULL in the string
119 in = null_prepend + in;
123 EscapeJSONString(in, false, &out);
173 std::string in = std::string(cases[i].to_escape);
174 EXPECT_FALSE(IsStringUTF8(in));
177 EscapeBytesAsInvalidJSONString(in, false));
179 EscapeBytesAsInvalidJSONString(in, true));
183 std::string in(kEmbedNull, arraysize(kEmbedNull));
184 EXPECT_FALSE(IsStringUTF8(in));
186 EscapeBytesAsInvalidJSONString(in, false));