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

Unified Diff: tests/standalone/io/secure_socket_renegotiate_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_socket_renegotiate_test.dart
diff --git a/tests/standalone/io/secure_socket_renegotiate_test.dart b/tests/standalone/io/secure_socket_renegotiate_test.dart
index ee115a91ae7bd4cfbed37ca2fdae97e58b7b0669..922e9d08dd5f6ea5544eedd99ccba6c4c8587d38 100644
--- a/tests/standalone/io/secure_socket_renegotiate_test.dart
+++ b/tests/standalone/io/secure_socket_renegotiate_test.dart
@@ -17,7 +17,7 @@ const HOST_NAME = "localhost";
const CERTIFICATE = "localhost_cert";
-String certificateDatabase() => join(dirname(new Options().script), 'pkcert');
+String certificateDatabase() => join(dirname(Platform.script), 'pkcert');
Future<SecureServerSocket> runServer() {
@@ -65,11 +65,10 @@ Future<SecureServerSocket> runServer() {
void main() {
runServer()
.then((SecureServerSocket server) {
- final options = new Options();
var clientScript =
- options.script.replaceFirst("_test.dart", "_client.dart");
+ Platform.script.replaceFirst("_test.dart", "_client.dart");
Expect.isTrue(clientScript.endsWith("_client.dart"));
- Process.run(options.executable,
+ Process.run(Platform.executable,
[clientScript,
server.port.toString(),
certificateDatabase()])
« no previous file with comments | « tests/standalone/io/secure_socket_renegotiate_client.dart ('k') | tests/standalone/io/secure_unauthorized_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698