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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 9182001: OOB messages and general message refactor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.h » ('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 3557)
+++ runtime/vm/dart_api_impl_test.cc (working copy)
@@ -1010,25 +1010,15 @@
}
-static bool MyPostMessageCallback(Dart_Isolate dest_isolate,
- Dart_Port send_port,
- Dart_Port reply_port,
- Dart_Message message) {
- return true;
+static void MyMessageNotifyCallback(Dart_Isolate dest_isolate) {
}
-static void MyClosePortCallback(Dart_Isolate dest_isolate,
- Dart_Port port) {
-}
-
-
UNIT_TEST_CASE(SetMessageCallbacks) {
Dart_Isolate dart_isolate = TestCase::CreateTestIsolate();
- Dart_SetMessageCallbacks(&MyPostMessageCallback, &MyClosePortCallback);
+ Dart_SetMessageNotifyCallback(&MyMessageNotifyCallback);
Isolate* isolate = reinterpret_cast<Isolate*>(dart_isolate);
- EXPECT_EQ(&MyPostMessageCallback, isolate->post_message_callback());
- EXPECT_EQ(&MyClosePortCallback, isolate->close_port_callback());
+ EXPECT_EQ(&MyMessageNotifyCallback, isolate->message_notify_callback());
Dart_ShutdownIsolate();
}
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698