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

Side by Side Diff: tests/isolate/src/MintMakerTest.dart

Issue 9422019: isolates refactor: this change introduces 'dart:isolate' as a library. This is a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 9 months 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 | « tests/isolate/src/MessageTest.dart ('k') | tests/isolate/src/Mixed2Test.dart » ('j') | 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 // 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
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 }
OLDNEW
« no previous file with comments | « tests/isolate/src/MessageTest.dart ('k') | tests/isolate/src/Mixed2Test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698