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

Unified Diff: tests/standalone/src/io/HttpServerEarlyClientCloseTest.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 | « samples/chat/chat_server_lib.dart ('k') | tests/standalone/src/io/HttpServerEarlyServerCloseTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/HttpServerEarlyClientCloseTest.dart
diff --git a/tests/standalone/src/io/HttpServerEarlyClientCloseTest.dart b/tests/standalone/src/io/HttpServerEarlyClientCloseTest.dart
index 320ed1e431a705019334b90b99d8ef6a1de6c673..bf0cf0e0ccf03ea7d60734b543a3f573e2d6499e 100644
--- a/tests/standalone/src/io/HttpServerEarlyClientCloseTest.dart
+++ b/tests/standalone/src/io/HttpServerEarlyClientCloseTest.dart
@@ -24,12 +24,13 @@ class EarlyCloseTest {
bool calledOnRequest = false;
bool calledOnError = false;
- server.onRequest = (HttpRequest request, HttpResponse response) {
- Expect.isTrue(expectRequest);
- Expect.isFalse(calledOnError);
- Expect.isFalse(calledOnRequest, "onRequest called multiple times");
- calledOnRequest = true;
- };
+ server.defaultRequestHandler =
+ (HttpRequest request, HttpResponse response) {
+ Expect.isTrue(expectRequest);
+ Expect.isFalse(calledOnError);
+ Expect.isFalse(calledOnRequest, "onRequest called multiple times");
+ calledOnRequest = true;
+ };
ReceivePort port = new ReceivePort();
server.onError = (Exception error) {
Expect.isFalse(calledOnError);
« no previous file with comments | « samples/chat/chat_server_lib.dart ('k') | tests/standalone/src/io/HttpServerEarlyServerCloseTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698