Home
last modified time | relevance | path

Searched refs:output_js (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/base/json/
Djson_writer_unittest.cc15 std::string output_js; in TEST() local
18 EXPECT_TRUE(JSONWriter::Write(Value(), &output_js)); in TEST()
19 EXPECT_EQ("null", output_js); in TEST()
22 EXPECT_TRUE(JSONWriter::Write(DictionaryValue(), &output_js)); in TEST()
23 EXPECT_EQ("{}", output_js); in TEST()
26 EXPECT_TRUE(JSONWriter::Write(ListValue(), &output_js)); in TEST()
27 EXPECT_EQ("[]", output_js); in TEST()
30 EXPECT_TRUE(JSONWriter::Write(Value(42), &output_js)); in TEST()
31 EXPECT_EQ("42", output_js); in TEST()
34 EXPECT_TRUE(JSONWriter::Write(Value(true), &output_js)); in TEST()
[all …]
Djson_value_serializer_unittest.cc301 std::string output_js; in TEST() local
304 JSONWriter::Write(valueRoot, &output_js); in TEST()
305 ASSERT_EQ(expected_output, output_js); in TEST()
308 JSONStringValueSerializer serializer(&output_js); in TEST()
310 ASSERT_EQ(expected_output, output_js); in TEST()