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

Unified Diff: tests/standalone/io/http_parser_test.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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/http_headers_test.dart ('k') | tests/standalone/io/http_server_socket_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « tests/standalone/io/http_headers_test.dart ('k') | tests/standalone/io/http_server_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698