Home
last modified time | relevance | path

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

/external/flatbuffers/samples/
Dsample_text.cpp48 std::string jsongen; in main() local
49 if (!GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen)) { in main()
54 if (jsongen != jsonfile) { in main()
55 printf("%s----------------\n%s", jsongen.c_str(), jsonfile.c_str()); in main()
/external/flatbuffers/tests/
Dtest.cpp584 std::string jsongen; in JsonDefaultTest() local
585 auto result = GenerateText(parser, builder.GetBufferPointer(), &jsongen); in JsonDefaultTest()
588 TEST_EQ(std::string::npos != jsongen.find("color: \"Blue\""), true); in JsonDefaultTest()
590 TEST_EQ(std::string::npos != jsongen.find("testf: 3.14159"), true); in JsonDefaultTest()
640 std::string jsongen; in ParseAndGenerateTextTest() local
642 GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in ParseAndGenerateTextTest()
644 TEST_EQ_STR(jsongen.c_str(), jsonfile.c_str()); in ParseAndGenerateTextTest()
1189 std::string jsongen; in FuzzTest2() local
1192 GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in FuzzTest2()
1195 if (jsongen != json) { in FuzzTest2()
[all …]