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

Unified Diff: tests/standalone/io/http_100_continue.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_100_continue.dart
diff --git a/tests/standalone/io/http_100_continue.dart b/tests/standalone/io/http_100_continue.dart
index 96411ec86727ef875cfd455e2c524c3c9e60fddc..32871e23cbf37b3cf556bb4e29180e9eee9fce40 100644
--- a/tests/standalone/io/http_100_continue.dart
+++ b/tests/standalone/io/http_100_continue.dart
@@ -12,20 +12,20 @@ void test(responseBytes, bodyLength) async {
fullRequest(bytes) {
var len = bytes.length;
return len > 4 &&
- bytes[len - 4] == 13 &&
- bytes[len - 3] == 10 &&
- bytes[len - 2] == 13 &&
- bytes[len - 1] == 10;
+ bytes[len - 4] == 13 &&
+ bytes[len - 3] == 10 &&
+ bytes[len - 2] == 13 &&
+ bytes[len - 1] == 10;
}
handleSocket(socket) async {
var bytes = [];
await for (var data in socket) {
- bytes.addAll(data);
- if (fullRequest(bytes)) {
- socket.add(responseBytes);
- socket.close();
- }
+ bytes.addAll(data);
+ if (fullRequest(bytes)) {
+ socket.add(responseBytes);
+ socket.close();
+ }
}
}
@@ -37,8 +37,8 @@ void test(responseBytes, bodyLength) async {
await client.getUrl(Uri.parse('http://127.0.0.1:${server.port}/'));
var response = await request.close();
Expect.equals(response.statusCode, 200);
- Expect.equals(bodyLength,
- (await response.fold([], (p, e) => p..addAll(e))).length);
+ Expect.equals(
+ bodyLength, (await response.fold([], (p, e) => p..addAll(e))).length);
server.close();
}

Powered by Google App Engine
This is Rietveld 408576698