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

Side by Side Diff: tests/unsorted/messaging_drop_messages_test.dart

Issue 1649703002: Update project authors statements to Dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dartino 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 import 'dart:fletch'; 5 import 'dart:fletch';
6 6
7 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
8 8
9 main(arguments) { 9 main(arguments) {
10 var forceGC = (arguments.length == 1) ? arguments[0] : null; 10 var forceGC = (arguments.length == 1) ? arguments[0] : null;
11 // Create a port but throw away the channel. 11 // Create a port but throw away the channel.
12 var port = new Port(new Channel()); 12 var port = new Port(new Channel());
13 if (forceGC != null) forceGC(); 13 if (forceGC != null) forceGC();
14 // Send a number of messages to the port. 14 // Send a number of messages to the port.
15 for (int i = 0; i < 10; i++) port.send(i); 15 for (int i = 0; i < 10; i++) port.send(i);
16 // Create another port and send and receive a message. 16 // Create another port and send and receive a message.
17 var channel = new Channel(); 17 var channel = new Channel();
18 port = new Port(channel); 18 port = new Port(channel);
19 port.send(42); 19 port.send(42);
20 Expect.equals(42, channel.receive()); 20 Expect.equals(42, channel.receive());
21 } 21 }
OLDNEW
« no previous file with comments | « tests/unsorted/messaging_drop_messages_expose_gc_test.dart ('k') | tests/unsorted/messaging_latency_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698