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

Unified Diff: tests/standalone/io/http_keep_alive_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_keep_alive_test.dart
diff --git a/tests/standalone/io/http_keep_alive_test.dart b/tests/standalone/io/http_keep_alive_test.dart
index 3e5d1989500ccd60574800f23ae99bad51572386..037fc87faa2d72df911c4041e57b6dd1cf6c78ba 100644
--- a/tests/standalone/io/http_keep_alive_test.dart
+++ b/tests/standalone/io/http_keep_alive_test.dart
@@ -12,14 +12,14 @@ import "dart:async";
import "dart:io";
Future getData(HttpClient client, int port, bool chunked, int length) {
- return client.get("127.0.0.1", port, "/?chunked=$chunked&length=$length")
+ return client
+ .get("127.0.0.1", port, "/?chunked=$chunked&length=$length")
.then((request) => request.close())
.then((response) {
- return response.fold(0, (bytes, data) => bytes + data.length)
- .then((bytes) {
- Expect.equals(length, bytes);
- });
- });
+ return response.fold(0, (bytes, data) => bytes + data.length).then((bytes) {
+ Expect.equals(length, bytes);
+ });
+ });
}
Future<HttpServer> startServer() {
@@ -46,10 +46,9 @@ testKeepAliveNonChunked() {
.then((_) => getData(client, server.port, false, 100))
.then((_) => getData(client, server.port, false, 100))
.then((_) {
- server.close();
- client.close();
- });
-
+ server.close();
+ client.close();
+ });
});
}
@@ -63,10 +62,9 @@ testKeepAliveChunked() {
.then((_) => getData(client, server.port, true, 100))
.then((_) => getData(client, server.port, true, 100))
.then((_) {
- server.close();
- client.close();
- });
-
+ server.close();
+ client.close();
+ });
});
}
@@ -83,10 +81,9 @@ testKeepAliveMixed() {
.then((_) => getData(client, server.port, true, 100))
.then((_) => getData(client, server.port, false, 100))
.then((_) {
- server.close();
- client.close();
- });
-
+ server.close();
+ client.close();
+ });
});
}

Powered by Google App Engine
This is Rietveld 408576698