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

Unified Diff: tests/standalone/io/https_bad_certificate_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/https_bad_certificate_test.dart
diff --git a/tests/standalone/io/https_bad_certificate_test.dart b/tests/standalone/io/https_bad_certificate_test.dart
index 90236809de01c5a9988505d4b53dfccfd9cf96fb..b98aa46371638d3b4415eea75a4fceaebc6d7dd6 100644
--- a/tests/standalone/io/https_bad_certificate_test.dart
+++ b/tests/standalone/io/https_bad_certificate_test.dart
@@ -14,7 +14,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 HttpServer.bindSecure(
@@ -28,12 +28,11 @@ Future<SecureServerSocket> runServer() {
}
void main() {
- final options = new Options();
var clientScript =
- join(dirname(options.script), 'https_bad_certificate_client.dart');
+ join(dirname(Platform.script), 'https_bad_certificate_client.dart');
Future clientProcess(int port, String acceptCertificate) {
- return Process.run(options.executable,
+ return Process.run(Platform.executable,
[clientScript, port.toString(), acceptCertificate])
.then((ProcessResult result) {
if (result.exitCode != 0 || !result.stdout.contains('SUCCESS')) {
« no previous file with comments | « tests/standalone/io/https_bad_certificate_client.dart ('k') | tests/standalone/io/https_unauthorized_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698