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

Unified Diff: pkg/http_server/test/utils.dart

Issue 23054008: Remove the Path class from dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed first round of review comments Created 7 years, 4 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: pkg/http_server/test/utils.dart
diff --git a/pkg/http_server/test/utils.dart b/pkg/http_server/test/utils.dart
index 498d159b8cdbf86ebb32671cd3e2a413d97d704f..6a46696cff4cbee8dc586181660fed24dc046889 100644
--- a/pkg/http_server/test/utils.dart
+++ b/pkg/http_server/test/utils.dart
@@ -6,7 +6,7 @@ library utils;
import 'dart:async';
import 'dart:io';
-
+import "package:path/path.dart";
Future<int> getStatusCode(int port,
String path,
@@ -57,8 +57,8 @@ const CERTIFICATE = "localhost_cert";
setupSecure() {
- Path scriptDir = new Path(new Options().script).directoryPath;
- Path certificateDatabase = scriptDir.append('pkcert');
- SecureSocket.initialize(database: certificateDatabase.toNativePath(),
+ String scriptDir = dirname(new Options().script);
+ String certificateDatabase = join(scriptDir, 'pkcert');
+ SecureSocket.initialize(database: certificateDatabase,
password: 'dartdart');
}

Powered by Google App Engine
This is Rietveld 408576698