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

Unified Diff: tests/standalone/io/web_socket_protocol_processor_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/url_encoding_test.dart ('k') | tests/standalone/out_of_memory_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46356c078dcda2c1d3ae9d33efddcf8ba7dc9d7f..0284a057272f83799f50bef89a02b40fa5cbf023 100644
--- a/tests/standalone/io/web_socket_protocol_processor_test.dart
+++ b/tests/standalone/io/web_socket_protocol_processor_test.dart
@@ -72,7 +72,7 @@ List<int> createFrame(bool fin,
frameSize += count;
// No masking.
assert(maskingKey == null);
- List<int> frame = new List<int>(frameSize);
+ List<int> frame = new List<int>.fixedLength(frameSize);
int frameIndex = 0;
frame[frameIndex++] = (fin ? 0x80 : 0x00) | opcode;
if (count < 126) {
@@ -133,7 +133,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>(messageLength);
+ List<int> message = new List<int>.fixedLength(messageLength);
for (int i = 0; i < messageLength; i++) message[i] = i & 0xFF;
testMessage(FRAME_OPCODE_TEXT, message);
testMessage(FRAME_OPCODE_BINARY, message);
@@ -199,7 +199,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>(messageLength);
+ List<int> message = new List<int>.fixedLength(messageLength);
for (int i = 0; i < messageLength; i++) message[i] = i & 0xFF;
testMessageFragmentation(FRAME_OPCODE_TEXT, message);
testMessageFragmentation(FRAME_OPCODE_BINARY, message);
« no previous file with comments | « tests/standalone/io/url_encoding_test.dart ('k') | tests/standalone/out_of_memory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698