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

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

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 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 side-by-side diff with in-line comments
Download patch
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 3a59abad94230ad77202d186daa7ca9aed1088cb..b3a18689b33a40f5e5171a32f9ce32a3dd1b9c87 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>.fixedLength(MSGSIZE),
+ _buffer = new List<int>(MSGSIZE),
_messages = 0 {
for (int i = 0; i < MSGSIZE; i++) {
_buffer[i] = FIRSTCHAR + i;
@@ -65,7 +65,7 @@ class EchoServerGame {
onDone: onClosed);
_socket.add(_buffer);
_socket.close();
- data = new List<int>.fixedLength(MSGSIZE);
+ data = new List<int>(MSGSIZE);
}
Socket.connect(TestingServer.HOST, _port).then((s) {
@@ -107,7 +107,7 @@ class EchoServer extends TestingServer {
static const int MSGSIZE = EchoServerGame.MSGSIZE;
void onConnection(Socket connection) {
- List<int> buffer = new List<int>.fixedLength(MSGSIZE);
+ List<int> buffer = new List<int>(MSGSIZE);
int offset = 0;
void dataReceived(List<int> data) {

Powered by Google App Engine
This is Rietveld 408576698