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

Unified Diff: tests/standalone/io/http_no_reason_phrase_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_no_reason_phrase_test.dart
diff --git a/tests/standalone/io/http_no_reason_phrase_test.dart b/tests/standalone/io/http_no_reason_phrase_test.dart
index 9312cd4a164a3fd98c3703e078bafc9dd413b2cd..de930050a62c809a887f2c6a43733364fedafbf3 100644
--- a/tests/standalone/io/http_no_reason_phrase_test.dart
+++ b/tests/standalone/io/http_no_reason_phrase_test.dart
@@ -16,23 +16,23 @@ import "dart:io";
void missingReasonPhrase(int statusCode, bool includeSpace) {
var client = new HttpClient();
ServerSocket.bind("127.0.0.1", 0).then((server) {
- server.listen((client) {
- client.listen(null);
- if (includeSpace) {
- client.write("HTTP/1.1 $statusCode \r\n\r\n");
- } else {
- client.write("HTTP/1.1 $statusCode\r\n\r\n");
- }
- client.close();
- });
- client.getUrl(Uri.parse("http://127.0.0.1:${server.port}/"))
+ server.listen((client) {
+ client.listen(null);
+ if (includeSpace) {
+ client.write("HTTP/1.1 $statusCode \r\n\r\n");
+ } else {
+ client.write("HTTP/1.1 $statusCode\r\n\r\n");
+ }
+ client.close();
+ });
+ client
+ .getUrl(Uri.parse("http://127.0.0.1:${server.port}/"))
.then((request) => request.close())
.then((response) {
- Expect.equals(statusCode, response.statusCode);
- Expect.equals("", response.reasonPhrase);
- return response.drain();
- })
- .whenComplete(() => server.close());
+ Expect.equals(statusCode, response.statusCode);
+ Expect.equals("", response.reasonPhrase);
+ return response.drain();
+ }).whenComplete(() => server.close());
});
}

Powered by Google App Engine
This is Rietveld 408576698