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

Unified Diff: tests/isolate/src/RequestReplyTest.dart

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 | « tests/isolate/src/NestedSpawnTest.dart ('k') | tests/isolate/src/SerializationTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/RequestReplyTest.dart
diff --git a/tests/isolate/src/RequestReplyTest.dart b/tests/isolate/src/RequestReplyTest.dart
index 30a63d75aaf3599bdf85324c01caef73854ab488..5037f6a0f16aa317a9d7662e0de46cd990693742 100644
--- a/tests/isolate/src/RequestReplyTest.dart
+++ b/tests/isolate/src/RequestReplyTest.dart
@@ -21,7 +21,7 @@ class TestIsolate extends Isolate {
void testCall(TestExpectation expect) {
expect.completes(new TestIsolate().spawn()).then((SendPort port) {
- port.call(42).receive(expect.runs2((message, replyTo) {
+ port.call(42).then(expect.runs1((message) {
Expect.equals(42 + 87, message);
expect.succeeded();
}));
@@ -40,17 +40,6 @@ void testSend(TestExpectation expect) {
});
}
-void testSendSingleShot(TestExpectation expect) {
- expect.completes(new TestIsolate().spawn()).then((SendPort port) {
- ReceivePort reply = new ReceivePort.singleShot();
- port.send(99, replyTo: reply.toSendPort());
- reply.receive(expect.runs2((message, replyTo) {
- Expect.equals(99 + 87, message);
- expect.succeeded();
- }));
- });
-}
-
void main() {
- runTests([testCall, testSend, testSendSingleShot]);
+ runTests([testCall, testSend]);
}
« no previous file with comments | « tests/isolate/src/NestedSpawnTest.dart ('k') | tests/isolate/src/SerializationTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698