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

Unified Diff: tests/standalone/io/raw_server_socket_cancel_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_server_socket_cancel_test.dart
diff --git a/tests/standalone/io/raw_server_socket_cancel_test.dart b/tests/standalone/io/raw_server_socket_cancel_test.dart
index a10d17933b1eb93100296aae778bfc50d10ab05f..0c74a16dc12a0fd447add8e3abd403c58a33a31e 100644
--- a/tests/standalone/io/raw_server_socket_cancel_test.dart
+++ b/tests/standalone/io/raw_server_socket_cancel_test.dart
@@ -37,7 +37,7 @@ void testCancelResubscribeServerSocket(int socketCount, int backlog) {
subscription = server.listen((client) {
client.writeEventsEnabled = false;
client.listen((event) {
- switch(event) {
+ switch (event) {
case RawSocketEvent.READ:
client.read();
break;
@@ -70,7 +70,7 @@ void testCancelResubscribeServerSocket(int socketCount, int backlog) {
bool done = false;
var subscription;
subscription = socket.listen((event) {
- switch(event) {
+ switch (event) {
case RawSocketEvent.READ:
Expect.fail("No read event expected");
break;
@@ -82,18 +82,16 @@ void testCancelResubscribeServerSocket(int socketCount, int backlog) {
case RawSocketEvent.WRITE:
// We don't care if this write succeeds, so we don't check
// the return value (number of bytes written).
- socket.write([1,2,3]);
+ socket.write([1, 2, 3]);
socket.shutdown(SocketDirection.SEND);
break;
}
- },
- onDone: () {
+ }, onDone: () {
if (!done) {
doneCount++;
checkDone();
}
- },
- onError: (e) {
+ }, onError: (e) {
// "Connection reset by peer" errors are handled here.
errorCount++;
checkDone();

Powered by Google App Engine
This is Rietveld 408576698