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

Unified Diff: tests/standalone/io/secure_unauthorized_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/secure_unauthorized_test.dart
diff --git a/tests/standalone/io/secure_unauthorized_test.dart b/tests/standalone/io/secure_unauthorized_test.dart
index b0d8823872acb9ba0720a1651b60c296145b95e7..2b0e986febcf36c76337799d22c911e151b35600 100644
--- a/tests/standalone/io/secure_unauthorized_test.dart
+++ b/tests/standalone/io/secure_unauthorized_test.dart
@@ -22,16 +22,16 @@ String localFile(path) => Platform.script.resolve(path).toFilePath();
SecurityContext serverContext = new SecurityContext()
..useCertificateChain(localFile('certificates/untrusted_server_chain.pem'))
..usePrivateKey(localFile('certificates/untrusted_server_key.pem'),
- password: 'dartdart');
+ password: 'dartdart');
Future<SecureServerSocket> runServer() {
- return SecureServerSocket.bind(HOST_NAME, 0, serverContext)
+ return SecureServerSocket
+ .bind(HOST_NAME, 0, serverContext)
.then((SecureServerSocket server) {
server.listen((SecureSocket socket) {
- socket.listen((_) { },
- onDone: () {
- socket.close();
- });
+ socket.listen((_) {}, onDone: () {
+ socket.close();
+ });
}, onError: (e) => Expect.isTrue(e is HandshakeException));
return server;
});
@@ -41,9 +41,9 @@ void main() {
var clientScript = localFile('secure_unauthorized_client.dart');
Future clientProcess(int port) {
- return Process.run(Platform.executable,
- [clientScript, port.toString()])
- .then((ProcessResult result) {
+ return Process
+ .run(Platform.executable, [clientScript, port.toString()]).then(
+ (ProcessResult result) {
if (result.exitCode != 0 || !result.stdout.contains('SUCCESS')) {
print("Client failed");
print(" stdout:");

Powered by Google App Engine
This is Rietveld 408576698