Index: vm/custom_isolate_test.cc |
=================================================================== |
--- vm/custom_isolate_test.cc (revision 1955) |
+++ vm/custom_isolate_test.cc (working copy) |
@@ -356,7 +356,8 @@ |
Dart_ExitIsolate(); |
// Create a new Dart_Isolate. |
- Dart_Isolate new_isolate = Dart_CreateIsolate(NULL, NULL); |
+ Dart_Isolate new_isolate = TestCase::CreateTestIsolate(); |
+ EXPECT(new_isolate != NULL); |
Dart_SetMessageCallbacks(&PostMessage, &ClosePort); |
Dart_Port new_port = Dart_GetMainPortId(); |
@@ -381,7 +382,8 @@ |
event_queue = new EventQueue(); |
current_event = NULL; |
- Dart_CreateIsolate(NULL, NULL); |
+ Dart_Isolate dart_isolate = TestCase::CreateTestIsolate(); |
+ EXPECT(dart_isolate != NULL); |
Dart_SetMessageCallbacks(&PostMessage, &ClosePort); |
Dart_EnterScope(); |
Dart_Handle result; |