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 "include/dart_mirrors_api.h" | 5 #include "include/dart_mirrors_api.h" |
6 #include "include/dart_tools_api.h" | 6 #include "include/dart_tools_api.h" |
7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
8 #include "vm/dart_api_impl.h" | 8 #include "vm/dart_api_impl.h" |
9 #include "vm/lockers.h" | 9 #include "vm/lockers.h" |
10 #include "vm/unit_test.h" | 10 #include "vm/unit_test.h" |
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1407 verify_callback |= 0x2; // Register interrupt callback. | 1407 verify_callback |= 0x2; // Register interrupt callback. |
1408 } else if (kind == kShutdown) { | 1408 } else if (kind == kShutdown) { |
1409 EXPECT(test_isolate_id == isolate_id); | 1409 EXPECT(test_isolate_id == isolate_id); |
1410 Dart_Isolate isolate = Dart_GetIsolate(isolate_id); | 1410 Dart_Isolate isolate = Dart_GetIsolate(isolate_id); |
1411 EXPECT(isolate == Dart_CurrentIsolate()); | 1411 EXPECT(isolate == Dart_CurrentIsolate()); |
1412 verify_callback |= 0x4; // Register shutdown callback. | 1412 verify_callback |= 0x4; // Register shutdown callback. |
1413 } | 1413 } |
1414 } | 1414 } |
1415 | 1415 |
1416 | 1416 |
1417 UNIT_TEST_CASE(Debug_IsolateID) { | 1417 VM_UNIT_TEST_CASE(Debug_IsolateID) { |
1418 const char* kScriptChars = | 1418 const char* kScriptChars = |
1419 "void moo(s) { } \n" | 1419 "void moo(s) { } \n" |
1420 "class A { \n" | 1420 "class A { \n" |
1421 " static void foo() { \n" | 1421 " static void foo() { \n" |
1422 " moo('good news'); \n" | 1422 " moo('good news'); \n" |
1423 " } \n" | 1423 " } \n" |
1424 "} \n" | 1424 "} \n" |
1425 "void main() { \n" | 1425 "void main() { \n" |
1426 " A.foo(); \n" | 1426 " A.foo(); \n" |
1427 "} \n"; | 1427 "} \n"; |
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2334 " null, 5, 17, 5, 18, 9, 19, 12," | 2334 " null, 5, 17, 5, 18, 9, 19, 12," |
2335 " null, 6, 21, 1," | 2335 " null, 6, 21, 1," |
2336 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," | 2336 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," |
2337 " null, 9, 29, 1]", | 2337 " null, 9, 29, 1]", |
2338 tokens_cstr); | 2338 tokens_cstr); |
2339 } | 2339 } |
2340 | 2340 |
2341 #endif | 2341 #endif |
2342 | 2342 |
2343 } // namespace dart | 2343 } // namespace dart |
OLD | NEW |