Home
last modified time | relevance | path

Searched refs:JSONWriter (Results 1 – 13 of 13) sorted by relevance

/external/libchrome/base/json/
Djson_writer_unittest.cc18 EXPECT_TRUE(JSONWriter::Write(Value(), &output_js)); in TEST()
22 EXPECT_TRUE(JSONWriter::Write(DictionaryValue(), &output_js)); in TEST()
26 EXPECT_TRUE(JSONWriter::Write(ListValue(), &output_js)); in TEST()
30 EXPECT_TRUE(JSONWriter::Write(Value(42), &output_js)); in TEST()
34 EXPECT_TRUE(JSONWriter::Write(Value(true), &output_js)); in TEST()
38 EXPECT_TRUE(JSONWriter::Write(Value(1.0), &output_js)); in TEST()
42 EXPECT_TRUE(JSONWriter::Write(Value(0.2), &output_js)); in TEST()
46 EXPECT_TRUE(JSONWriter::Write(Value(-0.8), &output_js)); in TEST()
50 EXPECT_TRUE(JSONWriter::Write(Value("foo"), &output_js)); in TEST()
69 EXPECT_TRUE(JSONWriter::Write(root_dict, &output_js)); in TEST()
[all …]
Djson_writer.cc28 bool JSONWriter::Write(const Value& node, std::string* json) { in Write()
33 bool JSONWriter::WriteWithOptions(const Value& node, in WriteWithOptions()
40 JSONWriter writer(options, json); in WriteWithOptions()
49 JSONWriter::JSONWriter(int options, std::string* json) in JSONWriter() function in base::JSONWriter
58 bool JSONWriter::BuildJSONString(const Value& node, size_t depth) { in BuildJSONString()
205 void JSONWriter::IndentLine(size_t depth) { in IndentLine()
Djson_writer.h19 class BASE_EXPORT JSONWriter {
54 JSONWriter(int options, std::string* json);
70 DISALLOW_COPY_AND_ASSIGN(JSONWriter);
Djson_string_value_serializer.cc36 options |= base::JSONWriter::OPTIONS_OMIT_BINARY_VALUES; in SerializeInternal()
38 options |= base::JSONWriter::OPTIONS_PRETTY_PRINT; in SerializeInternal()
40 return base::JSONWriter::WriteWithOptions(root, options, json_string_); in SerializeInternal()
Djson_correctness_fuzzer.cc45 bool b = base::JSONWriter::Write(*parsed_value, &parsed_output); in LLVMFuzzerTestOneInput()
54 base::JSONWriter::Write(*double_parsed_value, &double_parsed_output); in LLVMFuzzerTestOneInput()
Djson_value_serializer_unittest.cc304 JSONWriter::Write(valueRoot, &output_js); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/sancov/
Dsancov.cpp286 class JSONWriter { class
288 JSONWriter(raw_ostream &Out) : OS(Out) {} in JSONWriter() function in __anon353b67f00111::JSONWriter
289 JSONWriter(const JSONWriter &) = delete;
290 ~JSONWriter() { OS << "\n"; } in ~JSONWriter()
297 Object(JSONWriter *W, raw_ostream &OS) : W(W), OS(OS) { in Object()
320 JSONWriter *W;
377 static void operator<<(JSONWriter &W, in operator <<()
425 static void operator<<(JSONWriter &W, const SymbolizedCoverage &C) { in operator <<()
1249 JSONWriter W(outs()); in main()
/external/libbrillo/brillo/http/
Dhttp_transport_fake.cc195 base::JSONWriter::Write(*json, &value); in GetDataAsNormalizedJsonString()
256 base::JSONWriter::WriteWithOptions( in ReplyJson()
257 *json, base::JSONWriter::OPTIONS_PRETTY_PRINT, &text); in ReplyJson()
Dhttp_utils.cc306 base::JSONWriter::Write(*json, &data); in PostJsonAndBlock()
322 base::JSONWriter::Write(*json, &data); in PostJson()
344 base::JSONWriter::Write(*json, &data); in PatchJsonAndBlock()
366 base::JSONWriter::Write(*json, &data); in PatchJson()
/external/clang/lib/Basic/
DVirtualFileSystem.cpp1607 class JSONWriter { class
1619 JSONWriter(llvm::raw_ostream &OS) : OS(OS) {} in JSONWriter() function in __anonab1edbe20911::JSONWriter
1626 bool JSONWriter::containedIn(StringRef Parent, StringRef Path) { in containedIn()
1639 StringRef JSONWriter::containedPart(StringRef Parent, StringRef Path) { in containedPart()
1645 void JSONWriter::startDirectory(StringRef Path) { in startDirectory()
1656 void JSONWriter::endDirectory() { in endDirectory()
1664 void JSONWriter::writeEntry(StringRef VPath, StringRef RPath) { in writeEntry()
1674 void JSONWriter::write(ArrayRef<YAMLVFSEntry> Entries, in write()
1750 JSONWriter(OS).write(Mappings, UseExternalNames, IsCaseSensitive, in write()
/external/libchrome/dbus/
Dvalues_util.cc56 base::JSONWriter::Write(*key, &key_string); in PopDictionaryEntries()
/external/libchrome/base/
Dvalues.cc1392 JSONWriter::WriteWithOptions(value, JSONWriter::OPTIONS_PRETTY_PRINT, &json); in operator <<()
/external/libchrome/ipc/
Dipc_message_utils.cc511 base::JSONWriter::Write(p, &json); in Log()
1127 base::JSONWriter::Write(p, &json); in Log()