| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Things that should be "auto-generated" are between AUTO START and | 5 // Things that should be "auto-generated" are between AUTO START and |
| 6 // AUTO END (or just AUTO if it's a single line). | 6 // AUTO END (or just AUTO if it's a single line). |
| 7 | 7 |
| 8 #library("MintMakerTest"); |
| 9 #import("dart:isolate"); |
| 10 |
| 8 | 11 |
| 9 class Mint { | 12 class Mint { |
| 10 Mint() : registry_ = new Map<SendPort, Purse>() { | 13 Mint() : registry_ = new Map<SendPort, Purse>() { |
| 11 // AUTO START | 14 // AUTO START |
| 12 ReceivePort mintPort = new ReceivePort(); | 15 ReceivePort mintPort = new ReceivePort(); |
| 13 port = mintPort.toSendPort(); | 16 port = mintPort.toSendPort(); |
| 14 serveMint(mintPort); | 17 serveMint(mintPort); |
| 15 // AUTO END | 18 // AUTO END |
| 16 } | 19 } |
| 17 | 20 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 Expect.equals(0 + 5 + 42, sprouted.queryBalance()); | 266 Expect.equals(0 + 5 + 42, sprouted.queryBalance()); |
| 264 Expect.equals(100 - 5 - 42, purse.queryBalance()); | 267 Expect.equals(100 - 5 - 42, purse.queryBalance()); |
| 265 } | 268 } |
| 266 */ | 269 */ |
| 267 | 270 |
| 268 } | 271 } |
| 269 | 272 |
| 270 main() { | 273 main() { |
| 271 MintMakerTest.testMain(); | 274 MintMakerTest.testMain(); |
| 272 } | 275 } |
| OLD | NEW |