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

Unified Diff: tests/standalone/io/secure_unauthorized_client.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/secure_unauthorized_client.dart
diff --git a/tests/standalone/io/secure_unauthorized_client.dart b/tests/standalone/io/secure_unauthorized_client.dart
index 10392f262c6682f344d2721bc11b6770abc28a7f..f08e92b46cc48d34183cad47ac1d4da7bb9691b5 100644
--- a/tests/standalone/io/secure_unauthorized_client.dart
+++ b/tests/standalone/io/secure_unauthorized_client.dart
@@ -30,19 +30,17 @@ const HOST_NAME = "localhost";
Future runClients(int port) {
var testFutures = [];
for (int i = 0; i < 20; ++i) {
- testFutures.add(
- SecureSocket.connect(HOST_NAME, port, context: clientContext)
- .then((SecureSocket socket) {
- expect(false);
- }, onError: (e) {
- expect(e is HandshakeException || e is SocketException);
- }));
+ testFutures.add(SecureSocket
+ .connect(HOST_NAME, port, context: clientContext)
+ .then((SecureSocket socket) {
+ expect(false);
+ }, onError: (e) {
+ expect(e is HandshakeException || e is SocketException);
+ }));
}
return Future.wait(testFutures);
}
-
void main(List<String> args) {
- runClients(int.parse(args[0]))
- .then((_) => print('SUCCESS'));
+ runClients(int.parse(args[0])).then((_) => print('SUCCESS'));
}

Powered by Google App Engine
This is Rietveld 408576698