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

Unified Diff: tests/standalone/io/testing_server.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/testing_server.dart
diff --git a/tests/standalone/io/testing_server.dart b/tests/standalone/io/testing_server.dart
index e5be734c59153a703719be4dbcf80f257296b866..189939986c5b1e89e690e6b7f549d05af6caed91 100644
--- a/tests/standalone/io/testing_server.dart
+++ b/tests/standalone/io/testing_server.dart
@@ -5,12 +5,11 @@
part of ServerTest;
abstract class TestingServer {
-
static const HOST = "127.0.0.1";
static const INIT = 0;
static const SHUTDOWN = -1;
- void onConnection(Socket connection); // Abstract.
+ void onConnection(Socket connection); // Abstract.
void errorHandlerServer(e, trace) {
String msg = "Server socket error $e";
@@ -22,12 +21,12 @@ abstract class TestingServer {
Future<int> init() {
_closePort = new ReceivePort();
- _closePort.first.then((_) { close(); });
+ _closePort.first.then((_) {
+ close();
+ });
return ServerSocket.bind(HOST, 0).then((server) {
_server = server;
- _server.listen(
- onConnection,
- onError: errorHandlerServer);
+ _server.listen(onConnection, onError: errorHandlerServer);
return _server.port;
});
}

Powered by Google App Engine
This is Rietveld 408576698