| OLD | NEW |
| 1 /* class = Purse (tests/stub-generator/src/MintMakerFullyIsolatedTest.dart/MintM
akerFullyIsolatedTest.dart: 10) */ | 1 /* class = Purse (tests/stub-generator/src/MintMakerFullyIsolatedTest.dart/MintM
akerFullyIsolatedTest.dart: 7) */ |
| 2 | 2 |
| 3 interface Purse$Proxy { | 3 interface Purse$Proxy { |
| 4 Promise<int> queryBalance(); | 4 Promise<int> queryBalance(); |
| 5 | 5 |
| 6 Purse$Proxy sproutPurse(); | 6 Purse$Proxy sproutPurse(); |
| 7 | 7 |
| 8 Promise<int> deposit(int amount, Purse$Proxy source); | 8 Promise<int> deposit(int amount, Purse$Proxy source); |
| 9 } | 9 } |
| 10 | 10 |
| 11 class Purse$ProxyImpl extends Proxy implements Purse$Proxy { | 11 class Purse$ProxyImpl extends Proxy implements Purse$Proxy { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 void main() { | 68 void main() { |
| 69 this.port.receive(void _(var message, SendPort replyTo) { | 69 this.port.receive(void _(var message, SendPort replyTo) { |
| 70 Purse thing = new Purse(); | 70 Purse thing = new Purse(); |
| 71 SendPort port = Dispatcher.serve(new Purse$Dispatcher(thing)); | 71 SendPort port = Dispatcher.serve(new Purse$Dispatcher(thing)); |
| 72 Proxy proxy = new Proxy.forPort(replyTo); | 72 Proxy proxy = new Proxy.forPort(replyTo); |
| 73 proxy.send([port]); | 73 proxy.send([port]); |
| 74 }); | 74 }); |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 | 77 |
| 78 /* class = PowerfulPurse (tests/stub-generator/src/MintMakerFullyIsolatedTest.da
rt/MintMakerFullyIsolatedTest.dart: 19) */ | 78 /* class = PowerfulPurse (tests/stub-generator/src/MintMakerFullyIsolatedTest.da
rt/MintMakerFullyIsolatedTest.dart: 16) */ |
| 79 | 79 |
| 80 interface PowerfulPurse$Proxy { | 80 interface PowerfulPurse$Proxy { |
| 81 void init(Mint$Proxy mint, int balance); | 81 void init(Mint$Proxy mint, int balance); |
| 82 | 82 |
| 83 Promise<int> grab(int amount); | 83 Promise<int> grab(int amount); |
| 84 | 84 |
| 85 Purse$Proxy weak(); | 85 Purse$Proxy weak(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 class PowerfulPurse$ProxyImpl extends Proxy implements PowerfulPurse$Proxy { | 88 class PowerfulPurse$ProxyImpl extends Proxy implements PowerfulPurse$Proxy { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 void main() { | 146 void main() { |
| 147 this.port.receive(void _(var message, SendPort replyTo) { | 147 this.port.receive(void _(var message, SendPort replyTo) { |
| 148 PowerfulPurse thing = new PowerfulPurse(); | 148 PowerfulPurse thing = new PowerfulPurse(); |
| 149 SendPort port = Dispatcher.serve(new PowerfulPurse$Dispatcher(thing)); | 149 SendPort port = Dispatcher.serve(new PowerfulPurse$Dispatcher(thing)); |
| 150 Proxy proxy = new Proxy.forPort(replyTo); | 150 Proxy proxy = new Proxy.forPort(replyTo); |
| 151 proxy.send([port]); | 151 proxy.send([port]); |
| 152 }); | 152 }); |
| 153 } | 153 } |
| 154 } | 154 } |
| 155 | 155 |
| 156 /* class = Mint (tests/stub-generator/src/MintMakerFullyIsolatedTest.dart/MintMa
kerFullyIsolatedTest.dart: 29) */ | 156 /* class = Mint (tests/stub-generator/src/MintMakerFullyIsolatedTest.dart/MintMa
kerFullyIsolatedTest.dart: 26) */ |
| 157 | 157 |
| 158 interface Mint$Proxy { | 158 interface Mint$Proxy { |
| 159 Purse$Proxy createPurse(int balance); | 159 Purse$Proxy createPurse(int balance); |
| 160 | 160 |
| 161 PowerfulPurse$Proxy promote(Purse$Proxy purse); | 161 PowerfulPurse$Proxy promote(Purse$Proxy purse); |
| 162 } | 162 } |
| 163 | 163 |
| 164 class Mint$ProxyImpl extends Proxy implements Mint$Proxy { | 164 class Mint$ProxyImpl extends Proxy implements Mint$Proxy { |
| 165 Mint$ProxyImpl(Promise<SendPort> port) : super.forReply(port) { } | 165 Mint$ProxyImpl(Promise<SendPort> port) : super.forReply(port) { } |
| 166 Mint$ProxyImpl.forIsolate(Proxy isolate) : super.forReply(isolate.call([null])
) { } | 166 Mint$ProxyImpl.forIsolate(Proxy isolate) : super.forReply(isolate.call([null])
) { } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 proxy.send([port]); | 219 proxy.send([port]); |
| 220 }); | 220 }); |
| 221 } | 221 } |
| 222 } | 222 } |
| 223 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 223 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 224 // for details. All rights reserved. Use of this source code is governed by a | 224 // for details. All rights reserved. Use of this source code is governed by a |
| 225 // BSD-style license that can be found in the LICENSE file. | 225 // BSD-style license that can be found in the LICENSE file. |
| 226 | 226 |
| 227 // IsolateStubs=MintMakerFullyIsolatedTest.dart:Mint,Purse,PowerfulPurse | 227 // IsolateStubs=MintMakerFullyIsolatedTest.dart:Mint,Purse,PowerfulPurse |
| 228 | 228 |
| 229 //#library("MintMakerFullyIsolatedTest"); | |
| 230 //#import("../../isolate/src/TestFramework.dart"); | |
| 231 | |
| 232 interface Purse { | 229 interface Purse { |
| 233 Purse(); | 230 Purse(); |
| 234 int queryBalance(); | 231 int queryBalance(); |
| 235 Purse$Proxy sproutPurse(); | 232 Purse$Proxy sproutPurse(); |
| 236 // The deposit has not completed until the promise completes. If we | 233 // The deposit has not completed until the promise completes. If we |
| 237 // supported Promise<void> then this could use that. | 234 // supported Promise<void> then this could use that. |
| 238 Promise<int> deposit(int amount, Purse$Proxy source); | 235 Promise<int> deposit(int amount, Purse$Proxy source); |
| 239 } | 236 } |
| 240 | 237 |
| 241 interface PowerfulPurse extends Purse factory PurseImpl { | 238 interface PowerfulPurse extends Purse factory PurseImpl { |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 Expect.equals(n, results.length); | 449 Expect.equals(n, results.length); |
| 453 print('##DONE##'); | 450 print('##DONE##'); |
| 454 }); | 451 }); |
| 455 } | 452 } |
| 456 } | 453 } |
| 457 | 454 |
| 458 } | 455 } |
| 459 | 456 |
| 460 main() { | 457 main() { |
| 461 MintMakerFullyIsolatedTest.testMain(); | 458 MintMakerFullyIsolatedTest.testMain(); |
| 462 //runTests([MintMakerFullyIsolatedTest.testMain]); | |
| 463 } | 459 } |
| OLD | NEW |