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

Unified Diff: tests/standalone/io/raw_secure_server_socket_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/raw_secure_server_socket_test.dart
diff --git a/tests/standalone/io/raw_secure_server_socket_test.dart b/tests/standalone/io/raw_secure_server_socket_test.dart
index 73609ae12d92f342808f92526f93ffd6bb9f4dae..258a0ea42285c96d0e7fe710fd4f259d8a103acb 100644
--- a/tests/standalone/io/raw_secure_server_socket_test.dart
+++ b/tests/standalone/io/raw_secure_server_socket_test.dart
@@ -143,7 +143,7 @@ void testSimpleReadWrite() {
const messageSize = 1000;
List<int> createTestData() {
- List<int> data = new List.fixedLength(messageSize);
+ List<int> data = new List<int>(messageSize);
for (int i = 0; i < messageSize; i++) {
data[i] = i & 0xff;
}
@@ -162,7 +162,7 @@ void testSimpleReadWrite() {
server.listen((client) {
int bytesRead = 0;
int bytesWritten = 0;
- List<int> data = new List.fixedLength(messageSize);
+ List<int> data = new List<int>(messageSize);
client.writeEventsEnabled = false;
client.listen((event) {
@@ -212,7 +212,7 @@ void testSimpleReadWrite() {
int bytesRead = 0;
int bytesWritten = 0;
List<int> dataSent = createTestData();
- List<int> dataReceived = new List<int>.fixedLength(dataSent.length);
+ List<int> dataReceived = new List<int>(dataSent.length);
socket.listen((event) {
switch (event) {
case RawSocketEvent.READ:

Powered by Google App Engine
This is Rietveld 408576698