| 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 // IsolateStubs=MintMakerPromiseWithStubsTest.dart:Mint,Purse | 5 // IsolateStubs=MintMakerPromiseWithStubsTest.dart:Mint,Purse |
| 6 | 6 |
| 7 #library("MintMakerPromiseWithStubsTest-generatedTest"); | 7 #library("MintMakerPromiseWithStubsTest-generatedTest"); |
| 8 #import("../../isolate/src/TestFramework.dart"); | 8 #import("../../isolate/src/TestFramework.dart"); |
| 9 | 9 |
| 10 interface Mint factory MintImpl { | 10 interface Mint default MintImpl { |
| 11 | 11 |
| 12 Mint(); | 12 Mint(); |
| 13 | 13 |
| 14 Purse createPurse(int balance); | 14 Purse createPurse(int balance); |
| 15 | 15 |
| 16 } | 16 } |
| 17 | 17 |
| 18 interface Purse factory PurseImpl { | 18 interface Purse default PurseImpl { |
| 19 | 19 |
| 20 Purse(); | 20 Purse(); |
| 21 | 21 |
| 22 int queryBalance(); | 22 int queryBalance(); |
| 23 Purse sproutPurse(); | 23 Purse sproutPurse(); |
| 24 Promise<int> deposit(int amount, Purse$Proxy source); | 24 Promise<int> deposit(int amount, Purse$Proxy source); |
| 25 | 25 |
| 26 } | 26 } |
| 27 | 27 |
| 28 class MintImpl implements Mint { | 28 class MintImpl implements Mint { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 expect.succeeded(); | 120 expect.succeeded(); |
| 121 print("##DONE##"); | 121 print("##DONE##"); |
| 122 }); | 122 }); |
| 123 } | 123 } |
| 124 | 124 |
| 125 } | 125 } |
| 126 | 126 |
| 127 main() { | 127 main() { |
| 128 runTests([MintMakerPromiseWithStubsTest.testMain]); | 128 runTests([MintMakerPromiseWithStubsTest.testMain]); |
| 129 } | 129 } |
| OLD | NEW |