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

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

Issue 1766573003: Clean up more flags using flag list. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/ast.cc ('k') | runtime/vm/flag_list.h » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_native_api.h" 6 #include "include/dart_native_api.h"
7 7
8 #include "vm/unit_test.h" 8 #include "vm/unit_test.h"
9 9
10 // Custom Isolate Test. 10 // Custom Isolate Test.
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 OS::Print("-- Exit: CustomIsolateImpl_start --\n"); 315 OS::Print("-- Exit: CustomIsolateImpl_start --\n");
316 Dart_ExitScope(); 316 Dart_ExitScope();
317 } 317 }
318 318
319 319
320 UNIT_TEST_CASE(CustomIsolates) { 320 UNIT_TEST_CASE(CustomIsolates) {
321 bool saved_flag = FLAG_trace_shutdown; 321 bool saved_flag = FLAG_trace_shutdown;
322 FLAG_trace_shutdown = true; 322 FLAG_trace_shutdown = true;
323 FLAG_verify_handles = true; 323 FLAG_verify_handles = true;
324 #ifdef DEBUG
324 FLAG_verify_on_transition = true; 325 FLAG_verify_on_transition = true;
326 #endif
325 event_queue = new EventQueue(); 327 event_queue = new EventQueue();
326 328
327 Dart_Isolate dart_isolate = TestCase::CreateTestIsolate(); 329 Dart_Isolate dart_isolate = TestCase::CreateTestIsolate();
328 EXPECT(dart_isolate != NULL); 330 EXPECT(dart_isolate != NULL);
329 Dart_SetMessageNotifyCallback(&NotifyMessage); 331 Dart_SetMessageNotifyCallback(&NotifyMessage);
330 Dart_EnterScope(); 332 Dart_EnterScope();
331 Dart_Handle result; 333 Dart_Handle result;
332 334
333 // Create a test library. 335 // Create a test library.
334 Dart_Handle lib = TestCase::LoadTestScript(kCustomIsolateScriptChars, 336 Dart_Handle lib = TestCase::LoadTestScript(kCustomIsolateScriptChars,
(...skipping 21 matching lines...) Expand all
356 OS::Print("-- Finished event loop --\n"); 358 OS::Print("-- Finished event loop --\n");
357 EXPECT_STREQ("Received: 43", saved_echo); 359 EXPECT_STREQ("Received: 43", saved_echo);
358 free(saved_echo); 360 free(saved_echo);
359 361
360 delete event_queue; 362 delete event_queue;
361 event_queue = NULL; 363 event_queue = NULL;
362 FLAG_trace_shutdown = saved_flag; 364 FLAG_trace_shutdown = saved_flag;
363 } 365 }
364 366
365 } // namespace dart 367 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/flag_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698