Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: runtime/vm/json_test.cc

Issue 221133002: Begins work on ARM64, first assembler test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Adds TODOs Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // TODO(zra): Remove when tests are ready to enable.
6 #include "platform/globals.h"
7 #if !defined(TARGET_ARCH_ARM64)
8
5 #include "platform/assert.h" 9 #include "platform/assert.h"
6 #include "platform/json.h" 10 #include "platform/json.h"
7 #include "vm/json_stream.h" 11 #include "vm/json_stream.h"
8 #include "vm/unit_test.h" 12 #include "vm/unit_test.h"
9 13
10 namespace dart { 14 namespace dart {
11 15
12 16
13 TEST_CASE(JSON_ScanJSON) { 17 TEST_CASE(JSON_ScanJSON) {
14 const char* msg = "{ \"id\": 5, \"command\" : \"Debugger.pause\" }"; 18 const char* msg = "{ \"id\": 5, \"command\" : \"Debugger.pause\" }";
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 JSONStream js; 310 JSONStream js;
307 { 311 {
308 JSONArray jsarr(&js); 312 JSONArray jsarr(&js);
309 jsarr.AddValue("Hel\"\"lo\r\n\t"); 313 jsarr.AddValue("Hel\"\"lo\r\n\t");
310 } 314 }
311 EXPECT_STREQ("[\"Hel\\\"\\\"lo\\r\\n\\t\"]", js.ToCString()); 315 EXPECT_STREQ("[\"Hel\\\"\\\"lo\\r\\n\\t\"]", js.ToCString());
312 } 316 }
313 317
314 318
315 } // namespace dart 319 } // namespace dart
320
321 #endif // !defined(TARGET_ARCH_ARM64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698