Index: runtime/vm/isolate_test.cc |
diff --git a/runtime/vm/isolate_test.cc b/runtime/vm/isolate_test.cc |
index 99c835430d9054d85c09cf04996f361b6ee9a268..f5f0506aeaa63bf4cc3356b4c4d89f994cdab854 100644 |
--- a/runtime/vm/isolate_test.cc |
+++ b/runtime/vm/isolate_test.cc |
@@ -2,6 +2,7 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+#include "include/dart_api.h" |
#include "platform/assert.h" |
#include "vm/globals.h" |
#include "vm/isolate.h" |
@@ -10,14 +11,11 @@ |
namespace dart { |
UNIT_TEST_CASE(IsolateCurrent) { |
- Isolate::Flags vm_flags; |
- Dart_IsolateFlags api_flags; |
- vm_flags.CopyTo(&api_flags); |
- Isolate* isolate = Isolate::Init(NULL, api_flags); |
- EXPECT_EQ(isolate, Isolate::Current()); |
- isolate->Shutdown(); |
- EXPECT_EQ(reinterpret_cast<Isolate*>(NULL), Isolate::Current()); |
- delete isolate; |
+ Dart_Isolate isolate = Dart_CreateIsolate( |
+ NULL, NULL, bin::isolate_snapshot_buffer, NULL, NULL, NULL); |
+ EXPECT_EQ(isolate, Dart_CurrentIsolate()); |
+ Dart_ShutdownIsolate(); |
+ EXPECT_EQ(reinterpret_cast<Dart_Isolate>(NULL), Dart_CurrentIsolate()); |
} |