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

Unified Diff: sdk/lib/_internal/pub/test/test_pub.dart

Issue 17406010: Move getters from Options to Platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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: sdk/lib/_internal/pub/test/test_pub.dart
diff --git a/sdk/lib/_internal/pub/test/test_pub.dart b/sdk/lib/_internal/pub/test/test_pub.dart
index 4813ee48d0a3fdd20afdff0e0df4801257f860fa..86a2a258ed428d610d4f43eaf495bb5970397fa0 100644
--- a/sdk/lib/_internal/pub/test/test_pub.dart
+++ b/sdk/lib/_internal/pub/test/test_pub.dart
@@ -436,7 +436,7 @@ ScheduledProcess startPub({List args, Future<Uri> tokenEndpoint}) {
// Find a Dart executable we can use to spawn. Use the same one that was
// used to run this script itself.
- var dartBin = new Options().executable;
+ var dartBin = Platform.executable;
// If the executable looks like a path, get its full path. That way we
// can still find it when we spawn it with a different working directory.
@@ -556,7 +556,7 @@ class PubProcess extends ScheduledProcess {
/// The path to the `packages` directory from which pub loads its dependencies.
String get _packageRoot {
return path.absolute(path.join(
- path.dirname(new Options().executable), '..', '..', 'packages'));
+ path.dirname(Platform.executable), '..', '..', 'packages'));
}
/// Skips the current test if Git is not installed. This validates that the

Powered by Google App Engine
This is Rietveld 408576698