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

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

Issue 8395013: DartC User Warning Framework (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use new ErrorCode enums in single onError() method. 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 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=MintMakerFullyIsolatedTest.dart:Mint,Purse,PowerfulPurse 5 // IsolateStubs=MintMakerFullyIsolatedTest.dart:Mint,Purse,PowerfulPurse
6 6
7 #import("../../isolate/src/TestFramework.dart"); 7 #import("../../isolate/src/TestFramework.dart");
8 8
9 /* class = Purse (tests/stub-generator/src/MintMakerFullyIsolatedTest.dart/MintM akerFullyIsolatedTest.dart: 9) */ 9 /* class = Purse (file:/usr/local/google/users/scheglov/Clients/Dart/dart/tests/ stub-generator/src/MintMakerFullyIsolatedTest.dart/MintMakerFullyIsolatedTest.da rt: 9) */
10 10
11 interface Purse$Proxy { 11 interface Purse$Proxy {
12 Promise<int> queryBalance(); 12 Promise<int> queryBalance();
13 13
14 Purse$Proxy sproutPurse(); 14 Purse$Proxy sproutPurse();
15 15
16 Promise<int> deposit(int amount, Purse$Proxy source); 16 Promise<int> deposit(int amount, Purse$Proxy source);
17 } 17 }
18 18
19 class Purse$ProxyImpl extends ProxyImpl implements Purse$Proxy { 19 class Purse$ProxyImpl extends ProxyImpl implements Purse$Proxy {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void main() { 76 void main() {
77 this.port.receive(void _(var message, SendPort replyTo) { 77 this.port.receive(void _(var message, SendPort replyTo) {
78 Purse thing = new Purse(); 78 Purse thing = new Purse();
79 SendPort port = Dispatcher.serve(new Purse$Dispatcher(thing)); 79 SendPort port = Dispatcher.serve(new Purse$Dispatcher(thing));
80 Proxy proxy = new Proxy.forPort(replyTo); 80 Proxy proxy = new Proxy.forPort(replyTo);
81 proxy.send([port]); 81 proxy.send([port]);
82 }); 82 });
83 } 83 }
84 } 84 }
85 85
86 /* class = PowerfulPurse (tests/stub-generator/src/MintMakerFullyIsolatedTest.da rt/MintMakerFullyIsolatedTest.dart: 18) */ 86 /* class = PowerfulPurse (file:/usr/local/google/users/scheglov/Clients/Dart/dar t/tests/stub-generator/src/MintMakerFullyIsolatedTest.dart/MintMakerFullyIsolate dTest.dart: 18) */
87 87
88 interface PowerfulPurse$Proxy { 88 interface PowerfulPurse$Proxy {
89 void init(Mint$Proxy mint, int balance); 89 void init(Mint$Proxy mint, int balance);
90 90
91 Promise<int> grab(int amount); 91 Promise<int> grab(int amount);
92 92
93 Purse$Proxy weak(); 93 Purse$Proxy weak();
94 } 94 }
95 95
96 class PowerfulPurse$ProxyImpl extends ProxyImpl implements PowerfulPurse$Proxy { 96 class PowerfulPurse$ProxyImpl extends ProxyImpl implements PowerfulPurse$Proxy {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void main() { 154 void main() {
155 this.port.receive(void _(var message, SendPort replyTo) { 155 this.port.receive(void _(var message, SendPort replyTo) {
156 PowerfulPurse thing = new PowerfulPurse(); 156 PowerfulPurse thing = new PowerfulPurse();
157 SendPort port = Dispatcher.serve(new PowerfulPurse$Dispatcher(thing)); 157 SendPort port = Dispatcher.serve(new PowerfulPurse$Dispatcher(thing));
158 Proxy proxy = new Proxy.forPort(replyTo); 158 Proxy proxy = new Proxy.forPort(replyTo);
159 proxy.send([port]); 159 proxy.send([port]);
160 }); 160 });
161 } 161 }
162 } 162 }
163 163
164 /* class = Mint (tests/stub-generator/src/MintMakerFullyIsolatedTest.dart/MintMa kerFullyIsolatedTest.dart: 28) */ 164 /* class = Mint (file:/usr/local/google/users/scheglov/Clients/Dart/dart/tests/s tub-generator/src/MintMakerFullyIsolatedTest.dart/MintMakerFullyIsolatedTest.dar t: 28) */
165 165
166 interface Mint$Proxy { 166 interface Mint$Proxy {
167 Purse$Proxy createPurse(int balance); 167 Purse$Proxy createPurse(int balance);
168 168
169 PowerfulPurse$Proxy promote(Purse$Proxy purse); 169 PowerfulPurse$Proxy promote(Purse$Proxy purse);
170 } 170 }
171 171
172 class Mint$ProxyImpl extends ProxyImpl implements Mint$Proxy { 172 class Mint$ProxyImpl extends ProxyImpl implements Mint$Proxy {
173 Mint$ProxyImpl(Promise<SendPort> port) : super.forReply(port) { } 173 Mint$ProxyImpl(Promise<SendPort> port) : super.forReply(port) { }
174 Mint$ProxyImpl.forIsolate(Proxy isolate) : super.forReply(isolate.call([null]) ) { } 174 Mint$ProxyImpl.forIsolate(Proxy isolate) : super.forReply(isolate.call([null]) ) { }
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 Promise<int> allDone = new Promise<int>(); 423 Promise<int> allDone = new Promise<int>();
424 allDone.waitFor([d3, inner, inner2], 3); 424 allDone.waitFor([d3, inner, inner2], 3);
425 allDone.then((_) => expect.succeeded()); 425 allDone.then((_) => expect.succeeded());
426 } 426 }
427 427
428 } 428 }
429 429
430 main() { 430 main() {
431 runTests([MintMakerFullyIsolatedTest.testMain]); 431 runTests([MintMakerFullyIsolatedTest.testMain]);
432 } 432 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698