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

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

Issue 11498010: Improve the handling of HTTP requests with empty body (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file Created 8 years 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
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 72f4d8abc2ee494aa29e9bfbdb0c686cc1956785..dafd9f9d34eb16acfc621d743ea7960443de32cb 100644
--- a/tests/standalone/io/http_parser_test.dart
+++ b/tests/standalone/io/http_parser_test.dart
@@ -40,7 +40,7 @@ class HttpParserTest {
void reset() {
httpParser = new _HttpParser.requestParser();
- httpParser.requestStart = (m, u, v, h) {
+ httpParser.requestStart = (m, u, v, h, b) {
method = m;
uri = u;
version = v;
@@ -60,7 +60,7 @@ class HttpParserTest {
Expect.equals(connectionClose, !httpParser.persistentConnection);
headersCompleteCalled = true;
};
- httpParser.responseStart = (s, r, v, h) {
+ httpParser.responseStart = (s, r, v, h, b) {
Expect.fail("Expected request");
};
httpParser.dataReceived = (List<int> data) {
@@ -126,7 +126,9 @@ class HttpParserTest {
void reset() {
httpParser = new _HttpParser.requestParser();
- httpParser.responseStart = (s, r) { Expect.fail("Expected request"); };
+ httpParser.responseStart = (s, r, v, h, b) {
+ Expect.fail("Expected request");
+ };
httpParser.error = (e) {
errorCalled = true;
};
@@ -185,10 +187,10 @@ class HttpParserTest {
if (responseToMethod != null) {
httpParser.responseToMethod = responseToMethod;
}
- httpParser.requestStart = (m, u, v, h) {
+ httpParser.requestStart = (m, u, v, h, b) {
Expect.fail("Expected response");
};
- httpParser.responseStart = (s, r, v, h) {
+ httpParser.responseStart = (s, r, v, h, b) {
statusCode = s;
reasonPhrase = r;
version = v;
@@ -276,7 +278,9 @@ class HttpParserTest {
void reset() {
httpParser = new _HttpParser.responseParser();
- httpParser.requestStart = (m, u) => Expect.fail("Expected response");
+ httpParser.requestStart = (m, u, v, h, b) {
+ Expect.fail("Expected response");
+ };
httpParser.error = (e) => errorCalled = true;
httpParser.closed = () { };

Powered by Google App Engine
This is Rietveld 408576698