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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 8761007: Stop using void* types in the dart embedding api. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/message_queue_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl_test.cc
===================================================================
--- runtime/vm/dart_api_impl_test.cc (revision 1987)
+++ runtime/vm/dart_api_impl_test.cc (working copy)
@@ -766,24 +766,23 @@
// This test currently assumes that the Dart_Isolate type is an opaque
// representation of Isolate*.
Dart_Isolate iso_1 = TestCase::CreateTestIsolate();
- EXPECT_EQ(iso_1, Isolate::Current());
+ EXPECT_EQ(iso_1, Api::CastIsolate(Isolate::Current()));
Dart_Isolate isolate = Dart_CurrentIsolate();
EXPECT_EQ(iso_1, isolate);
Dart_ExitIsolate();
- EXPECT(NULL == Isolate::Current());
EXPECT(NULL == Dart_CurrentIsolate());
Dart_Isolate iso_2 = TestCase::CreateTestIsolate();
- EXPECT_EQ(iso_2, Isolate::Current());
+ EXPECT_EQ(iso_2, Dart_CurrentIsolate());
Dart_ExitIsolate();
- EXPECT(NULL == Isolate::Current());
+ EXPECT(NULL == Dart_CurrentIsolate());
Dart_EnterIsolate(iso_2);
- EXPECT_EQ(iso_2, Isolate::Current());
+ EXPECT_EQ(iso_2, Dart_CurrentIsolate());
Dart_ShutdownIsolate();
- EXPECT(NULL == Isolate::Current());
+ EXPECT(NULL == Dart_CurrentIsolate());
Dart_EnterIsolate(iso_1);
- EXPECT_EQ(iso_1, Isolate::Current());
+ EXPECT_EQ(iso_1, Dart_CurrentIsolate());
Dart_ShutdownIsolate();
- EXPECT(NULL == Isolate::Current());
+ EXPECT(NULL == Dart_CurrentIsolate());
}
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/message_queue_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698