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

Unified Diff: tests/standalone/io/web_socket_protocol_processor_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/web_socket_protocol_processor_test.dart
diff --git a/tests/standalone/io/web_socket_protocol_processor_test.dart b/tests/standalone/io/web_socket_protocol_processor_test.dart
index 6ab0da9fe143e6279ea50bd7f0ffd7ccf1f2ff12..c017f508a575cad7fd88d1c4855992771bd680dc 100644
--- a/tests/standalone/io/web_socket_protocol_processor_test.dart
+++ b/tests/standalone/io/web_socket_protocol_processor_test.dart
@@ -75,7 +75,7 @@ List<int> createFrame(bool fin,
frameSize += count;
// No masking.
assert(maskingKey == null);
- List<int> frame = new List<int>.fixedLength(frameSize);
+ List<int> frame = new List<int>(frameSize);
int frameIndex = 0;
frame[frameIndex++] = (fin ? 0x80 : 0x00) | opcode;
if (count < 126) {
@@ -136,7 +136,7 @@ void testFullMessages() {
void runTest(int from, int to, int step) {
for (int messageLength = from; messageLength < to; messageLength += step) {
- List<int> message = new List<int>.fixedLength(messageLength);
+ List<int> message = new List<int>(messageLength);
for (int i = 0; i < messageLength; i++) message[i] = i & 0xFF;
testMessage(FRAME_OPCODE_TEXT, message);
testMessage(FRAME_OPCODE_BINARY, message);
@@ -202,7 +202,7 @@ void testFragmentedMessages() {
void runTest(int from, int to, int step) {
for (int messageLength = from; messageLength < to; messageLength += step) {
- List<int> message = new List<int>.fixedLength(messageLength);
+ List<int> message = new List<int>(messageLength);
for (int i = 0; i < messageLength; i++) message[i] = i & 0xFF;
testMessageFragmentation(FRAME_OPCODE_TEXT, message);
testMessageFragmentation(FRAME_OPCODE_BINARY, message);

Powered by Google App Engine
This is Rietveld 408576698