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

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

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 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
Index: tests/standalone/io/http_server_idle_timeout_test.dart
diff --git a/tests/standalone/io/http_server_idle_timeout_test.dart b/tests/standalone/io/http_server_idle_timeout_test.dart
index 5673bfc3cbeb2beb8bb63d7dea70b1f07e9a20a5..247bb6fcce26cbc39752fbd66efd87379f70dc42 100644
--- a/tests/standalone/io/http_server_idle_timeout_test.dart
+++ b/tests/standalone/io/http_server_idle_timeout_test.dart
@@ -11,7 +11,6 @@ import "dart:async";
import "dart:io";
import "dart:isolate";
-
void testTimeoutAfterRequest() {
HttpServer.bind("127.0.0.1", 0).then((server) {
server.idleTimeout = null;
@@ -24,12 +23,10 @@ void testTimeoutAfterRequest() {
Socket.connect("127.0.0.1", server.port).then((socket) {
var data = "GET / HTTP/1.1\r\nContent-Length: 0\r\n\r\n";
socket.write(data);
- socket.listen(
- null,
- onDone: () {
- socket.close();
- server.close();
- });
+ socket.listen(null, onDone: () {
+ socket.close();
+ server.close();
+ });
});
});
}
@@ -41,12 +38,10 @@ void testTimeoutBeforeRequest() {
server.listen((request) => request.response.close());
Socket.connect("127.0.0.1", server.port).then((socket) {
- socket.listen(
- null,
- onDone: () {
- socket.close();
- server.close();
- });
+ socket.listen(null, onDone: () {
+ socket.close();
+ server.close();
+ });
});
});
}

Powered by Google App Engine
This is Rietveld 408576698