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

Side by Side Diff: tests/stub-generator/src/MintMakerPromiseWithStubsTest.dart

Issue 8948001: Updates dartc to recognize 'default' keyword on interface and updated factory method syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from mmendez Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698