Home
last modified time | relevance | path

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

/external/flatbuffers/samples/
Dsample_text.cpp47 std::string jsongen; in main() local
48 if (!GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen)) { in main()
53 if (jsongen != jsonfile) { in main()
54 printf("%s----------------\n%s", jsongen.c_str(), jsonfile.c_str()); in main()
/external/flatbuffers/tests/
Dtest.cpp621 std::string jsongen; in JsonDefaultTest() local
622 auto result = GenerateText(parser, builder.GetBufferPointer(), &jsongen); in JsonDefaultTest()
625 TEST_EQ(std::string::npos != jsongen.find("color: \"Blue\""), true); in JsonDefaultTest()
627 TEST_EQ(std::string::npos != jsongen.find("testf: 3.14159"), true); in JsonDefaultTest()
650 std::string jsongen; in JsonEnumsTest() local
651 auto result = GenerateText(parser, builder.GetBufferPointer(), &jsongen); in JsonEnumsTest()
653 TEST_EQ(std::string::npos != jsongen.find("color: \"Red Blue\""), true); in JsonEnumsTest()
725 std::string jsongen; in TestMonsterExtraFloats() local
726 auto result = GenerateText(parser, def_obj, &jsongen); in TestMonsterExtraFloats()
729 TEST_EQ(std::string::npos != jsongen.find("f0: nan"), true); in TestMonsterExtraFloats()
[all …]