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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 9652001: SendPort + ReceivePort changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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/custom_isolate_test.cc ('k') | runtime/vm/snapshot_test.dart » ('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
diff --git a/runtime/vm/dart_api_impl_test.cc b/runtime/vm/dart_api_impl_test.cc
index 48c53517a23a73bac9010a74c7b304ce10b0f314..3295a4c215480ef645355f94d6bb4e8bfb55b25e 100644
--- a/runtime/vm/dart_api_impl_test.cc
+++ b/runtime/vm/dart_api_impl_test.cc
@@ -4200,7 +4200,7 @@ UNIT_TEST_CASE(NewNativePort) {
const char* kScriptChars =
"#import('dart:isolate');\n"
"void callPort(SendPort port) {\n"
- " port.call(null).receive((message, replyTo) {\n"
+ " port.call(null).then((message) {\n"
" throw new Exception(message);\n"
" });\n"
"}\n";
@@ -4272,7 +4272,7 @@ static bool RunLoopTestCallback(const char* name_prefix,
"\n"
"void main(exc_child, exc_parent) {\n"
" new MyIsolate().spawn().then((port) {\n"
- " port.call(exc_child).receive((message, replyTo) {\n"
+ " port.call(exc_child).then((message) {\n"
" if (message != 'hello') throw new Exception('ShouldNotHappen');\n"
" if (exc_parent) throw new Exception('MakeParentExit');\n"
" });\n"
« no previous file with comments | « runtime/vm/custom_isolate_test.cc ('k') | runtime/vm/snapshot_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698