| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/globals.h" |
| 6 #if !defined(TARGET_ARCH_ARM64) |
| 7 |
| 5 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 6 #include "platform/json.h" | 9 #include "platform/json.h" |
| 7 #include "vm/json_stream.h" | 10 #include "vm/json_stream.h" |
| 8 #include "vm/unit_test.h" | 11 #include "vm/unit_test.h" |
| 9 | 12 |
| 10 namespace dart { | 13 namespace dart { |
| 11 | 14 |
| 12 | 15 |
| 13 TEST_CASE(JSON_ScanJSON) { | 16 TEST_CASE(JSON_ScanJSON) { |
| 14 const char* msg = "{ \"id\": 5, \"command\" : \"Debugger.pause\" }"; | 17 const char* msg = "{ \"id\": 5, \"command\" : \"Debugger.pause\" }"; |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 JSONStream js; | 309 JSONStream js; |
| 307 { | 310 { |
| 308 JSONArray jsarr(&js); | 311 JSONArray jsarr(&js); |
| 309 jsarr.AddValue("Hel\"\"lo\r\n\t"); | 312 jsarr.AddValue("Hel\"\"lo\r\n\t"); |
| 310 } | 313 } |
| 311 EXPECT_STREQ("[\"Hel\\\"\\\"lo\\r\\n\\t\"]", js.ToCString()); | 314 EXPECT_STREQ("[\"Hel\\\"\\\"lo\\r\\n\\t\"]", js.ToCString()); |
| 312 } | 315 } |
| 313 | 316 |
| 314 | 317 |
| 315 } // namespace dart | 318 } // namespace dart |
| 319 |
| 320 #endif // !defined(TARGET_ARCH_ARM64) |
| OLD | NEW |