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

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

Issue 10119005: Add HTTP handler registration to the HTTP server (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 8 years, 8 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/src/io/HttpServerHandlerTest.dart ('k') | tests/standalone/src/io/HttpServerTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/HttpServerSocketTest.dart
diff --git a/tests/standalone/src/io/HttpServerSocketTest.dart b/tests/standalone/src/io/HttpServerSocketTest.dart
index d25481010c287fa91063efc7f802f83e90a38745..06f01604e5b479ff470b560145a219280865dc33 100644
--- a/tests/standalone/src/io/HttpServerSocketTest.dart
+++ b/tests/standalone/src/io/HttpServerSocketTest.dart
@@ -172,13 +172,14 @@ void testSocketClose() {
void runSettings(int cutoff,
bool closeAsError,
bool expectError) {
- server.onRequest = (HttpRequest request, HttpResponse response) {
- request.inputStream.onData = () {
- };
- request.inputStream.onClosed = () {
- response.outputStream.close();
- };
- };
+ server.defaultRequestHandler =
+ (HttpRequest request, HttpResponse response) {
+ request.inputStream.onData = () {
+ };
+ request.inputStream.onClosed = () {
+ response.outputStream.close();
+ };
+ };
if (expectError) {
ReceivePort port = new ReceivePort();
« no previous file with comments | « tests/standalone/src/io/HttpServerHandlerTest.dart ('k') | tests/standalone/src/io/HttpServerTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698