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

Unified Diff: tests/standalone/io/issue_22637_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/issue_22637_test.dart
diff --git a/tests/standalone/io/issue_22637_test.dart b/tests/standalone/io/issue_22637_test.dart
index 50aeb398d56a7a80af613908e64573e8697a2b56..2eba30ba2685e6d4df1cb0ba7b987c0fe63db72e 100644
--- a/tests/standalone/io/issue_22637_test.dart
+++ b/tests/standalone/io/issue_22637_test.dart
@@ -31,10 +31,10 @@ void serverListen(RawSocket serverSide) {
server.close();
}
}
+
serverSide.listen(serveData);
}
-
void clientListen(RawSocketEvent event) {
if (event == RawSocketEvent.READ) {
client.readEventsEnabled = false;
@@ -50,11 +50,10 @@ void clientListen(RawSocketEvent event) {
data = client.read(100);
Expect.isNotNull(data);
client.close();
- });
+ });
}
}
-
test() async {
server = await RawServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, 0);
server.listen(serverListen);
@@ -62,7 +61,6 @@ test() async {
client.listen(clientListen);
}
-
void main() {
test();
}

Powered by Google App Engine
This is Rietveld 408576698