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

Side by Side Diff: runtime/vm/snapshot_test.dart

Issue 8351032: Fix tests broken by proxy changes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
« no previous file with comments | « corelib/src/promise.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 class Fields { 5 class Fields {
6 Fields(int i, int j) : fld1 = i, fld2 = j, fld5 = true {} 6 Fields(int i, int j) : fld1 = i, fld2 = j, fld5 = true {}
7 int fld1; 7 int fld1;
8 final int fld2; 8 final int fld2;
9 static int fld3; 9 static int fld3;
10 static final int fld4 = 10; 10 static final int fld4 = 10;
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 // THE REST OF THIS FILE COULD BE AUTOGENERATED 1373 // THE REST OF THIS FILE COULD BE AUTOGENERATED
1374 // --------------------------------------------------------------------------- 1374 // ---------------------------------------------------------------------------
1375 1375
1376 interface Mint$Proxy { 1376 interface Mint$Proxy {
1377 1377
1378 Purse$Proxy createPurse(int balance); // Promise<int> balance. 1378 Purse$Proxy createPurse(int balance); // Promise<int> balance.
1379 1379
1380 } 1380 }
1381 1381
1382 1382
1383 class Mint$ProxyImpl extends Proxy implements Mint$Proxy { 1383 class Mint$ProxyImpl extends ProxyImpl implements Mint$Proxy {
1384 1384
1385 Mint$ProxyImpl(Proxy isolate) : super.forReply(isolate.call([null])) {} 1385 Mint$ProxyImpl(Proxy isolate) : super.forReply(isolate.call([null])) {}
1386 1386
1387 Purse$Proxy createPurse(int balance) { 1387 Purse$Proxy createPurse(int balance) {
1388 return new Purse$ProxyImpl(this.call([balance])); 1388 return new Purse$ProxyImpl(this.call([balance]));
1389 } 1389 }
1390 1390
1391 } 1391 }
1392 1392
1393 1393
(...skipping 29 matching lines...) Expand all
1423 1423
1424 interface Purse$Proxy { 1424 interface Purse$Proxy {
1425 1425
1426 Promise<int> queryBalance(); 1426 Promise<int> queryBalance();
1427 Purse$Proxy sproutPurse(); 1427 Purse$Proxy sproutPurse();
1428 void deposit(int amount, Purse$Proxy source); // Promise<int> amount. 1428 void deposit(int amount, Purse$Proxy source); // Promise<int> amount.
1429 1429
1430 } 1430 }
1431 1431
1432 1432
1433 class Purse$ProxyImpl extends Proxy implements Purse$Proxy { 1433 class Purse$ProxyImpl extends ProxyImpl implements Purse$Proxy {
1434 1434
1435 Purse$ProxyImpl(Promise<SendPort> port) : super.forReply(port) { } 1435 Purse$ProxyImpl(Promise<SendPort> port) : super.forReply(port) { }
1436 1436
1437 Promise<int> queryBalance() { 1437 Promise<int> queryBalance() {
1438 return this.call(["balance"]); 1438 return this.call(["balance"]);
1439 } 1439 }
1440 1440
1441 void deposit(int amount, Purse$Proxy source) { 1441 void deposit(int amount, Purse$Proxy source) {
1442 this.send(["deposit", amount, source]); 1442 this.send(["deposit", amount, source]);
1443 } 1443 }
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
2189 }); 2189 });
2190 }); 2190 });
2191 } 2191 }
2192 2192
2193 void main() { 2193 void main() {
2194 this.port.receive((ignored, replyTo) { 2194 this.port.receive((ignored, replyTo) {
2195 replyTo.send("foo", null); 2195 replyTo.send("foo", null);
2196 }); 2196 });
2197 } 2197 }
2198 } 2198 }
OLDNEW
« no previous file with comments | « corelib/src/promise.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698