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

Unified Diff: tests/standalone/io/raw_socket_cross_process_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/raw_socket_cross_process_test.dart
diff --git a/tests/standalone/io/raw_socket_cross_process_test.dart b/tests/standalone/io/raw_socket_cross_process_test.dart
index f92046bc4803f11068738886034e3da29981677e..a52e5b635ebaa55741d36f888038731ab82040f9 100644
--- a/tests/standalone/io/raw_socket_cross_process_test.dart
+++ b/tests/standalone/io/raw_socket_cross_process_test.dart
@@ -29,7 +29,7 @@ Future makeServer() {
server.listen((connection) {
connection.writeEventsEnabled = false;
connection.listen((event) {
- switch(event) {
+ switch (event) {
case RawSocketEvent.READ:
Expect.fail("No read event expected");
break;
@@ -47,11 +47,15 @@ Future makeServer() {
}
Future runClientProcess(int port) {
- return Process.run(Platform.executable,
- []..addAll(Platform.executableArguments)
- ..add(Platform.script.toFilePath())
- ..add('--client')
- ..add(port.toString())).then((ProcessResult result) {
+ return Process
+ .run(
+ Platform.executable,
+ []
+ ..addAll(Platform.executableArguments)
+ ..add(Platform.script.toFilePath())
+ ..add('--client')
+ ..add(port.toString()))
+ .then((ProcessResult result) {
if (result.exitCode != 0 || !result.stdout.contains('SUCCESS')) {
print("Client failed, exit code ${result.exitCode}");
print(" stdout:");
@@ -65,7 +69,7 @@ Future runClientProcess(int port) {
runClient(int port) {
RawSocket.connect(InternetAddress.LOOPBACK_IP_V4, port).then((connection) {
- connection.listen((_) { }, onDone: () => print('SUCCESS'));
+ connection.listen((_) {}, onDone: () => print('SUCCESS'));
connection.shutdown(SocketDirection.SEND);
});
}

Powered by Google App Engine
This is Rietveld 408576698