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

Unified Diff: tests/standalone/io/echo_server_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/echo_server_stream_test.dart ('k') | tests/standalone/io/file_error_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_test.dart
diff --git a/tests/standalone/io/echo_server_test.dart b/tests/standalone/io/echo_server_test.dart
index 27c31282960bf610beec5b87a7d89be20cc90202..4208bb8663c3f19f5ac733991256f72c40aceebd 100644
--- a/tests/standalone/io/echo_server_test.dart
+++ b/tests/standalone/io/echo_server_test.dart
@@ -30,7 +30,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;
@@ -44,7 +44,7 @@ class EchoServerGame {
void messageHandler() {
- List<int> bufferReceived = new List<int>(MSGSIZE);
+ List<int> bufferReceived = new List<int>.fixedLength(MSGSIZE);
int bytesRead = 0;
void handleRead() {
@@ -141,7 +141,7 @@ class EchoServer extends TestingServer {
void messageHandler() {
- List<int> buffer = new List<int>(msgSize);
+ List<int> buffer = new List<int>.fixedLength(msgSize);
int bytesRead = 0;
void handleRead() {
« no previous file with comments | « tests/standalone/io/echo_server_stream_test.dart ('k') | tests/standalone/io/file_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698