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

Unified Diff: tests/standalone/io/socket_close_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tests/standalone/io/socket_close_test.dart
diff --git a/tests/standalone/io/socket_close_test.dart b/tests/standalone/io/socket_close_test.dart
index efb6f20218e35d223b725519dcef5fa7753d9d7f..426f45a557c688fbbfb741981105016f3b24e158 100644
--- a/tests/standalone/io/socket_close_test.dart
+++ b/tests/standalone/io/socket_close_test.dart
@@ -9,8 +9,9 @@
//
// Test socket close events.
-import "dart:io";
-import "dart:isolate";
+import 'dart:async';
+import 'dart:io';
+import 'dart:isolate';
const SERVERSHUTDOWN = -1;
const ITERATIONS = 10;
@@ -51,7 +52,7 @@ class SocketClose {
case 4:
case 5:
case 6:
- List<int> b = new List<int>(5);
+ List<int> b = new List<int>.fixedLength(5);
_readBytes += _socket.readList(b, 0, 5);
if ((_readBytes % 5) == 0) {
_dataEvents++;
@@ -219,7 +220,7 @@ class SocketCloseServer {
var connection = data.connection;
void readBytes(whenFiveBytes) {
- List<int> b = new List<int>(5);
+ List<int> b = new List<int>.fixedLength(5);
data.readBytes += connection.readList(b, 0, 5);
if (data.readBytes == 5) {
whenFiveBytes();
« no previous file with comments | « tests/standalone/io/skipping_dart2js_compilations_test.dart ('k') | tests/standalone/io/socket_exception_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698