| H A D | json_test.cc | 5 #include "json.h" 25 namespace json { namespace 27 // json::NewJSONEncoder - for encoding streaming parser events as JSON 85 // This tests that the JSON encoder escapes lone high surrogates, i.e. in TEST() 98 // This tests that the JSON encoder escapes lone low surrogates, i.e. in TEST() 111 // This tests that the JSON encoder will escape the UTF16 input 0xffff as in TEST() 154 // incomplete UTF-8 sequence. So the string in the JSON output is empty. in TEST() 238 // JSON can't represent +Infinity, -Infinity, or NaN. in TEST() 308 // In JSON, in TEST() 380 std::string json = "{\\"foo\\": 42}"; TEST_F() local 396 std::string json = "{\\"foo\\": \\"a\\x7f\\"}"; TEST_F() local 415 std::string json = "\\n {\\n\\"msg\\"\\n: \\v\\"Hello, world.\\"\\t\\r}\\t"; TEST_F() local 427 std::string json = "{\\"foo\\": {\\"bar\\": {\\"baz\\": 1}, \\"bar2\\": 2}}"; TEST_F() local 447 std::string json = "{\\"foo\\": 3.1415, \\"bar\\": 31415e-4}"; TEST_F() local 462 std::string json = "{\\"msg\\": \\"Hello, \\\\uD83C\\\\uDF0E.\\"}"; TEST_F() local 479 std::vector<uint16_t> json = TEST_F() local 497 std::string json = "{\\"escape\\": \\"\\xef\\xbf\\xbf or \\\\uffff\\"}"; TEST_F() local 525 std::string json = TEST_F() local 550 std::string json = "{\\"foo\\": 3.1415} junk"; TEST_F() local 560 std::string json; MakeNestedJson() local 615 std::string json = ""; TEST_F() local 622 std::string json = "|"; TEST_F() local 630 std::string json = "1E9223372036854775807"; TEST_F() local 638 std::string json = "\\"foo\\\\x22\\""; TEST_F() local 645 std::string json = "[1,2,]"; TEST_F() local 653 std::string json = "[1,2 2"; TEST_F() local 662 std::string json = "{\\"foo\\": 3.1415, \\"bar: 31415e-4}"; TEST_F() local 670 std::string json = "{\\"foo\\", 42}"; TEST_F() local 677 std::string json = "{\\"foo\\": 42, }"; TEST_F() local 686 std::string json = "{\\"foo\\": 3.1415: \\"bar\\": 0}"; TEST_F() local 694 std::string json = "}"; TEST_F() local 748 std::string json = "{\\"msg\\":\\"Hello, \\\\ud83c\\\\udf0e.\\",\\"lst\\":[1,2,3]}"; TYPED_TEST() local [all...] |