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

Unified Diff: tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart

Issue 8437090: Change the handling of closing sockets (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments by ager@ 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 | « tests/stub-generator/src/MintMakerFullyIsolatedTest-generatedTest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart
diff --git a/tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart b/tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart
index 40e8e6a237e2e737ceffcac5b5dc29bfd21759c4..8b0c4f3a6b1ce466aed70d9be69b34c43b5c5dca 100644
--- a/tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart
+++ b/tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart
@@ -8,11 +8,11 @@
/* class = Mint (tests/stub-generator/src/MintMakerPromiseWithStubsTest.dart/MintMakerPromiseWithStubsTest.dart: 9) */
-interface Mint$Proxy extends Proxy {
+interface Mint$Proxy {
Purse$Proxy createPurse(int balance);
}
-class Mint$ProxyImpl extends ProxyImpl implements Mint$Proxy {
+class Mint$ProxyImpl extends Proxy implements Mint$Proxy {
Mint$ProxyImpl(Promise<SendPort> port) : super.forReply(port) { }
Mint$ProxyImpl.forIsolate(Proxy isolate) : super.forReply(isolate.call([null])) { }
factory Mint$ProxyImpl.createIsolate() {
@@ -61,7 +61,7 @@ class Mint$Dispatcher$Isolate extends Isolate {
/* class = Purse (tests/stub-generator/src/MintMakerPromiseWithStubsTest.dart/MintMakerPromiseWithStubsTest.dart: 17) */
-interface Purse$Proxy extends Proxy {
+interface Purse$Proxy {
Promise<int> queryBalance();
Purse$Proxy sproutPurse();
@@ -69,7 +69,7 @@ interface Purse$Proxy extends Proxy {
Promise<int> deposit(int amount, Purse$Proxy source);
}
-class Purse$ProxyImpl extends ProxyImpl implements Purse$Proxy {
+class Purse$ProxyImpl extends Proxy implements Purse$Proxy {
Purse$ProxyImpl(Promise<SendPort> port) : super.forReply(port) { }
Purse$ProxyImpl.forIsolate(Proxy isolate) : super.forReply(isolate.call([null])) { }
factory Purse$ProxyImpl.createIsolate() {
@@ -89,7 +89,7 @@ class Purse$ProxyImpl extends ProxyImpl implements Purse$Proxy {
}
Promise<int> deposit(int amount, Purse$Proxy source) {
- return new PromiseProxy<int>(this.call(["deposit", amount, source]));
+ return this.call(["deposit", amount, source]);
}
}
@@ -108,9 +108,7 @@ class Purse$Dispatcher extends Dispatcher<Purse> {
reply(port);
} else if (command == "deposit") {
int amount = message[1];
- List<Promise<SendPort>> promises = new List<Promise<SendPort>>();
- promises.add(new PromiseProxy<SendPort>(new Promise<SendPort>.fromValue(message[2])));
- Purse$Proxy source = new Purse$ProxyImpl(promises[0]);
+ Purse$Proxy source = new Purse$ProxyImpl(new Promise<SendPort>.fromValue(message[2]));
Promise<int> deposit = target.deposit(amount, source);
reply(deposit);
} else {
« no previous file with comments | « tests/stub-generator/src/MintMakerFullyIsolatedTest-generatedTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698