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

Unified Diff: tests/standalone/src/io/HttpParserTest.dart

Issue 9581011: Make the HttpParser and HttpUtil classes private (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « runtime/bin/io_sources.gypi ('k') | tests/standalone/src/io/UrlEncodingTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/HttpParserTest.dart
diff --git a/tests/standalone/src/io/HttpParserTest.dart b/tests/standalone/src/io/HttpParserTest.dart
index adafdeeb010c521c259d6f455be25c657696fc61..6f20f6665ea480f7666d68322391b3d0ccb9c75f 100644
--- a/tests/standalone/src/io/HttpParserTest.dart
+++ b/tests/standalone/src/io/HttpParserTest.dart
@@ -2,7 +2,7 @@
// 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:io");
+#source("../../../../runtime/bin/http_parser.dart");
class HttpParserTest {
static void runAllTests() {
@@ -17,7 +17,7 @@ class HttpParserTest {
int expectedBytesReceived = 0,
Map expectedHeaders = null,
bool chunked = false]) {
- HttpParser httpParser;
+ _HttpParser httpParser;
bool headersCompleteCalled;
bool dataEndCalled;
String method;
@@ -27,7 +27,7 @@ class HttpParserTest {
int bytesReceived;
void reset() {
- httpParser = new HttpParser();
+ httpParser = new _HttpParser();
httpParser.requestStart = (m, u) { method = m; uri = u; };
httpParser.responseStart = (s, r) { Expect.fail("Expected request"); };
httpParser.headerReceived = (f, v) {
@@ -102,7 +102,7 @@ class HttpParserTest {
int expectedBytesReceived = 0,
Map expectedHeaders = null,
bool chunked = false]) {
- HttpParser httpParser;
+ _HttpParser httpParser;
bool headersCompleteCalled;
bool dataEndCalled;
int statusCode;
@@ -112,7 +112,7 @@ class HttpParserTest {
int bytesReceived;
void reset() {
- httpParser = new HttpParser();
+ httpParser = new _HttpParser();
httpParser.requestStart = (m, u) => Expect.fail("Expected response");
httpParser.responseStart = (s, r) {
statusCode = s;
« no previous file with comments | « runtime/bin/io_sources.gypi ('k') | tests/standalone/src/io/UrlEncodingTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698