Searched refs:jsongen (Results 1 – 2 of 2) sorted by relevance
/external/flatbuffers/samples/ |
D | sample_text.cpp | 48 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/ |
D | test.cpp | 451 std::string jsongen; in ParseAndGenerateTextTest() local 452 auto result = GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in ParseAndGenerateTextTest() 455 if (jsongen != jsonfile) { in ParseAndGenerateTextTest() 456 printf("%s----------------\n%s", jsongen.c_str(), jsonfile.c_str()); in ParseAndGenerateTextTest() 908 std::string jsongen; in FuzzTest2() local 910 auto result = GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); in FuzzTest2() 913 if (jsongen != json) { in FuzzTest2() 916 size_t len = std::min(json.length(), jsongen.length()); in FuzzTest2() 918 if (json[i] != jsongen[i]) { in FuzzTest2() 923 static_cast<int>(i), jsongen[i], json[i]); in FuzzTest2() [all …]
|