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

Unified Diff: runtime/vm/snapshot_test.cc

Issue 359673002: - Remove Dart_ReceivePortGetId, Dart_GetReceivePort and Dart_PostMessage. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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') | sdk/lib/_internal/lib/io_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot_test.cc
===================================================================
--- runtime/vm/snapshot_test.cc (revision 37823)
+++ runtime/vm/snapshot_test.cc (working copy)
@@ -2631,6 +2631,7 @@
" var messageCount = 0;\n"
" var exception = '';\n"
" var port = new RawReceivePort();\n"
+ " var sendPort = port.sendPort;\n"
" port.handler = (message) {\n"
" if (messageCount < 8) {\n"
" exception = '$exception${message}';\n"
@@ -2643,15 +2644,15 @@
" messageCount++;\n"
" if (messageCount == 9) throw new Exception(exception);\n"
" };\n"
- " return port;\n"
+ " return sendPort;\n"
"}\n";
Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
Dart_EnterScope();
- Dart_Handle recv_port = Dart_Invoke(lib, NewString("main"), 0, NULL);
- EXPECT_VALID(recv_port);
+ Dart_Handle send_port = Dart_Invoke(lib, NewString("main"), 0, NULL);
+ EXPECT_VALID(send_port);
Dart_Port port_id;
- Dart_Handle result = Dart_ReceivePortGetId(recv_port, &port_id);
+ Dart_Handle result = Dart_SendPortGetId(send_port, &port_id);
ASSERT(!Dart_IsError(result));
// Setup single object message.
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | sdk/lib/_internal/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698