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

Unified Diff: samples/tests/samples/chat/chat_server_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: samples/tests/samples/chat/chat_server_test.dart
diff --git a/samples/tests/samples/chat/chat_server_test.dart b/samples/tests/samples/chat/chat_server_test.dart
index d554725a78ed1574d9c5569d627824304e5e001c..2b7361f0b7d6315a07e9f582adaee5094f442876 100644
--- a/samples/tests/samples/chat/chat_server_test.dart
+++ b/samples/tests/samples/chat/chat_server_test.dart
@@ -240,9 +240,9 @@ class TestMain {
});
// Prepare the requested number of clients.
- clientPorts = new List<SendPort>.fixedLength(clientCount);
+ clientPorts = new List<SendPort>(clientCount);
int liveClientsCount = 0;
- clientStatusPorts = new List<ReceivePort>.fixedLength(clientCount);
+ clientStatusPorts = new List<ReceivePort>(clientCount);
for (int i = 0; i < clientCount; i++) {
ReceivePort statusPort = new ReceivePort();
statusPort.receive((var message, SendPort replyTo) {

Powered by Google App Engine
This is Rietveld 408576698