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 // TODO(zra): Remove when tests are ready to enable. | |
6 #include "platform/globals.h" | |
7 #if !defined(TARGET_ARCH_ARM64) | |
8 | |
9 #include "platform/assert.h" | 5 #include "platform/assert.h" |
10 #include "platform/json.h" | 6 #include "platform/json.h" |
11 #include "vm/json_stream.h" | 7 #include "vm/json_stream.h" |
12 #include "vm/unit_test.h" | 8 #include "vm/unit_test.h" |
13 | 9 |
14 namespace dart { | 10 namespace dart { |
15 | 11 |
16 | 12 |
17 TEST_CASE(JSON_ScanJSON) { | 13 TEST_CASE(JSON_ScanJSON) { |
18 const char* msg = "{ \"id\": 5, \"command\" : \"Debugger.pause\" }"; | 14 const char* msg = "{ \"id\": 5, \"command\" : \"Debugger.pause\" }"; |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 js.SetOptions(&option_keys[0], &option_values[0], 3); | 330 js.SetOptions(&option_keys[0], &option_values[0], 3); |
335 EXPECT(js.num_options() == 3); | 331 EXPECT(js.num_options() == 3); |
336 EXPECT(!js.HasOption("lizard")); | 332 EXPECT(!js.HasOption("lizard")); |
337 EXPECT(js.HasOption("dog")); | 333 EXPECT(js.HasOption("dog")); |
338 EXPECT(js.HasOption("cat")); | 334 EXPECT(js.HasOption("cat")); |
339 EXPECT(js.OptionIs("cat", "banana")); | 335 EXPECT(js.OptionIs("cat", "banana")); |
340 EXPECT(!js.OptionIs("dog", "banana")); | 336 EXPECT(!js.OptionIs("dog", "banana")); |
341 } | 337 } |
342 | 338 |
343 } // namespace dart | 339 } // namespace dart |
344 | |
345 #endif // !defined(TARGET_ARCH_ARM64) | |
OLD | NEW |