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

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

Issue 596703005: Fix type annotation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « no previous file | sdk/lib/_internal/pub_generated/test/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9719f13f627fc37bf996439daa754ca483acaa53..05b05d841effa3b905144981f163794f9d6e0024 100644
--- a/sdk/lib/_internal/pub/test/test_pub.dart
+++ b/sdk/lib/_internal/pub/test/test_pub.dart
@@ -483,7 +483,7 @@ String _pathInSandbox(String relPath) {
}
/// Gets the environment variables used to run pub in a test context.
-Map getPubTestEnvironment([Uri tokenEndpoint]) {
+Map getPubTestEnvironment([String tokenEndpoint]) {
var environment = {};
environment['_PUB_TESTING'] = 'true';
environment['PUB_CACHE'] = _pathInSandbox(cachePath);
@@ -492,8 +492,7 @@ Map getPubTestEnvironment([Uri tokenEndpoint]) {
environment['_PUB_TEST_SDK_VERSION'] = "0.1.2+3";
if (tokenEndpoint != null) {
- environment['_PUB_TEST_TOKEN_ENDPOINT'] =
- tokenEndpoint.toString();
+ environment['_PUB_TEST_TOKEN_ENDPOINT'] = tokenEndpoint.toString();
}
return environment;
@@ -503,7 +502,7 @@ Map getPubTestEnvironment([Uri tokenEndpoint]) {
/// interaction with that process.
///
/// Any futures in [args] will be resolved before the process is started.
-ScheduledProcess startPub({List args, Future<Uri> tokenEndpoint}) {
+ScheduledProcess startPub({List args, Future<String> tokenEndpoint}) {
ensureDir(_pathInSandbox(appPath));
// Find a Dart executable we can use to spawn. Use the same one that was
« no previous file with comments | « no previous file | sdk/lib/_internal/pub_generated/test/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698