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

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

Issue 2666133002: Added new type of unit test, RAW_UNIT_TEST_CASE, which is used for tests that can be flaky if run w… (Closed)
Patch Set: Fixed name of UNIT_TEST_CASE macro Created 3 years, 10 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
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/find_code_object_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/find_code_object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698