Index: tests/standalone/io/http_parser_test.dart |
diff --git a/tests/standalone/io/http_parser_test.dart b/tests/standalone/io/http_parser_test.dart |
index 3310e8c54952fd12eedf11bb3b72877e539a8e65..19dce9901cfa0dc3c660bfb696f09e684ec78302 100644 |
--- a/tests/standalone/io/http_parser_test.dart |
+++ b/tests/standalone/io/http_parser_test.dart |
@@ -2,6 +2,8 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+#import('dart:math'); |
+ |
#source("../../../runtime/bin/http_parser.dart"); |
class HttpParserTest { |
@@ -81,7 +83,7 @@ class HttpParserTest { |
int unparsed; |
for (int pos = 0; pos < requestData.length; pos += chunkSize) { |
int remaining = requestData.length - pos; |
- int writeLength = Math.min(chunkSize, remaining); |
+ int writeLength = min(chunkSize, remaining); |
written += writeLength; |
int parsed = httpParser.writeList(requestData, pos, writeLength); |
unparsed = writeLength - parsed; |
@@ -132,7 +134,7 @@ class HttpParserTest { |
reset(); |
for (int pos = 0; pos < requestData.length; pos += chunkSize) { |
int remaining = requestData.length - pos; |
- int writeLength = Math.min(chunkSize, remaining); |
+ int writeLength = min(chunkSize, remaining); |
httpParser.writeList(requestData, pos, writeLength); |
} |
Expect.isTrue(errorCalled); |
@@ -225,7 +227,7 @@ class HttpParserTest { |
int unparsed; |
for (int pos = 0; pos < requestData.length; pos += chunkSize) { |
int remaining = requestData.length - pos; |
- int writeLength = Math.min(chunkSize, remaining); |
+ int writeLength = min(chunkSize, remaining); |
written += writeLength; |
int parsed = httpParser.writeList(requestData, pos, writeLength); |
unparsed = writeLength - parsed; |
@@ -279,7 +281,7 @@ class HttpParserTest { |
reset(); |
for (int pos = 0; pos < requestData.length; pos += chunkSize) { |
int remaining = requestData.length - pos; |
- int writeLength = Math.min(chunkSize, remaining); |
+ int writeLength = min(chunkSize, remaining); |
httpParser.writeList(requestData, pos, writeLength); |
} |
if (close) httpParser.connectionClosed(); |