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

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

Issue 52723007: Revert "Change dart:io Platform.script to return a Uri." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « tests/standalone/io/secure_socket_bad_data_test.dart ('k') | tests/standalone/io/secure_socket_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 595dd0d0ac25e552b7256c0b5c82d6cdc5ad10ea..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() => Platform.script.resolve('pkcert').toFilePath();
+String certificateDatabase() => join(dirname(Platform.script), 'pkcert');
Future<SecureServerSocket> runServer() {
@@ -65,9 +65,8 @@ Future<SecureServerSocket> runServer() {
void main() {
runServer()
.then((SecureServerSocket server) {
- var clientScript = Platform.script
- .toFilePath()
- .replaceFirst("_test.dart", "_client.dart");
+ var clientScript =
+ Platform.script.replaceFirst("_test.dart", "_client.dart");
Expect.isTrue(clientScript.endsWith("_client.dart"));
Process.run(Platform.executable,
[clientScript,
« no previous file with comments | « tests/standalone/io/secure_socket_bad_data_test.dart ('k') | tests/standalone/io/secure_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698