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

Unified Diff: tests/standalone/io/echo_server_stream_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
« no previous file with comments | « tests/standalone/io/directory_test.dart ('k') | tests/standalone/io/echo_server_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/echo_server_stream_test.dart
diff --git a/tests/standalone/io/echo_server_stream_test.dart b/tests/standalone/io/echo_server_stream_test.dart
index 200dfd523e85b6c3acc5b0e3e4ee266ba39c3a81..a350b59b826b9dd8247c4100225a00c00df25676 100644
--- a/tests/standalone/io/echo_server_stream_test.dart
+++ b/tests/standalone/io/echo_server_stream_test.dart
@@ -24,7 +24,7 @@ class EchoServerGame {
EchoServerGame.start()
: _receivePort = new ReceivePort(),
_sendPort = null,
- _buffer = new List<int>(MSGSIZE),
+ _buffer = new List<int>.fixedLength(MSGSIZE),
_messages = 0 {
for (int i = 0; i < MSGSIZE; i++) {
_buffer[i] = FIRSTCHAR + i;
@@ -77,7 +77,7 @@ class EchoServerGame {
offset += bytesRead;
}
- if (_messages % 2 == 0) data = new List<int>(MSGSIZE);
+ if (_messages % 2 == 0) data = new List<int>.fixedLength(MSGSIZE);
inputStream.onData = onData;
inputStream.onClosed = onClosed;
}
@@ -147,7 +147,7 @@ class EchoServer extends TestingServer {
void onConnection(Socket connection) {
InputStream inputStream;
- List<int> buffer = new List<int>(MSGSIZE);
+ List<int> buffer = new List<int>.fixedLength(MSGSIZE);
int offset = 0;
void dataReceived() {
« no previous file with comments | « tests/standalone/io/directory_test.dart ('k') | tests/standalone/io/echo_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698