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

Unified Diff: tests/standalone/io/http_outgoing_size_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_outgoing_size_test.dart
diff --git a/tests/standalone/io/http_outgoing_size_test.dart b/tests/standalone/io/http_outgoing_size_test.dart
index 406bcaf5646cba0b013fc5c9c89077cbca2a2816..c84708a54f64dc96615ba27f0aed932d9377b9d3 100644
--- a/tests/standalone/io/http_outgoing_size_test.dart
+++ b/tests/standalone/io/http_outgoing_size_test.dart
@@ -33,27 +33,22 @@ void testChunkedBufferSizeMsg() {
request.response.close();
});
var client = new HttpClient();
- client.get('127.0.0.1', server.port, '/')
- .then((request) {
- request.headers.set(HttpHeaders.ACCEPT_ENCODING, "");
- return request.close();
- })
- .then((response) {
- var buffer = [];
- response.listen(
- (data) => buffer.addAll(data),
- onDone: () {
- Expect.equals(sendData.length * 8, buffer.length);
- for (int i = 0; i < buffer.length; i++) {
- Expect.equals(sendData[i % sendData.length], buffer[i]);
- }
- server.close();
- });
+ client.get('127.0.0.1', server.port, '/').then((request) {
+ request.headers.set(HttpHeaders.ACCEPT_ENCODING, "");
+ return request.close();
+ }).then((response) {
+ var buffer = [];
+ response.listen((data) => buffer.addAll(data), onDone: () {
+ Expect.equals(sendData.length * 8, buffer.length);
+ for (int i = 0; i < buffer.length; i++) {
+ Expect.equals(sendData[i % sendData.length], buffer[i]);
+ }
+ server.close();
});
+ });
});
}
-
void main() {
testChunkedBufferSizeMsg();
}

Powered by Google App Engine
This is Rietveld 408576698