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

Unified Diff: tests/standalone/io/secure_unauthorized_test.dart

Issue 37033002: dart:io | Remove uses of Options class from standalone tests. Mark Options deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove commented lines from standalone.status. Created 7 years, 2 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 a86b95c098cbfc4b4aa7d64d94d1eee570df2abd..400ae7eb1c49b448b0d675115c74c9971c9b20bf 100644
--- a/tests/standalone/io/secure_unauthorized_test.dart
+++ b/tests/standalone/io/secure_unauthorized_test.dart
@@ -15,7 +15,7 @@ const CERTIFICATE = "localhost_cert";
Future<SecureServerSocket> runServer() {
SecureSocket.initialize(
- database: join(dirname(new Options().script), 'pkcert'),
+ database: join(dirname(Platform.script), 'pkcert'),
password: 'dartdart');
return SecureServerSocket.bind(HOST_NAME, 0, CERTIFICATE)
@@ -31,12 +31,11 @@ Future<SecureServerSocket> runServer() {
}
void main() {
- final options = new Options();
- var clientScript = join(dirname(options.script),
+ var clientScript = join(dirname(Platform.script),
'secure_unauthorized_client.dart');
Future clientProcess(int port) {
- return Process.run(options.executable,
+ return Process.run(Platform.executable,
[clientScript, port.toString()])
.then((ProcessResult result) {
if (result.exitCode != 0 || !result.stdout.contains('SUCCESS')) {
« no previous file with comments | « tests/standalone/io/secure_unauthorized_client.dart ('k') | tests/standalone/io/skipping_dart2js_compilations_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698