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

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

Issue 18576006: Remove _HttpUtils from dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated comments and add encoding tests. Created 7 years, 5 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_body_test.dart ('k') | tests/standalone/io/http_headers_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_cookie_date_test.dart
diff --git a/tests/standalone/io/http_cookie_date_test.dart b/tests/standalone/io/http_cookie_date_test.dart
index b9c76eaefc6508cbfbd4807d13e8390f412ae647..c0057ee2c7f8dd7b423d8f28b1b42b36deb70033 100644
--- a/tests/standalone/io/http_cookie_date_test.dart
+++ b/tests/standalone/io/http_cookie_date_test.dart
@@ -12,11 +12,11 @@ part "../../../sdk/lib/io/io_sink.dart";
part "../../../sdk/lib/io/http.dart";
part "../../../sdk/lib/io/http_impl.dart";
part "../../../sdk/lib/io/http_parser.dart";
-part "../../../sdk/lib/io/http_utils.dart";
+part "../../../sdk/lib/io/http_date.dart";
part "../../../sdk/lib/io/socket.dart";
void testParseHttpCookieDate() {
- Expect.throws(() => _HttpUtils.parseCookieDate(""));
+ Expect.throws(() => HttpDate._parseCookieDate(""));
test(int year,
int month,
@@ -26,7 +26,7 @@ void testParseHttpCookieDate() {
int seconds,
String formatted) {
DateTime date = new DateTime.utc(year, month, day, hours, minutes, seconds, 0);
- Expect.equals(date, _HttpUtils.parseCookieDate(formatted));
+ Expect.equals(date, HttpDate._parseCookieDate(formatted));
}
test(2012, DateTime.JUNE, 19, 14, 15, 01, "tue, 19-jun-12 14:15:01 gmt");
« no previous file with comments | « tests/standalone/io/http_body_test.dart ('k') | tests/standalone/io/http_headers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698