Skip to content
Snippets Groups Projects
Commit c2a904b1 authored by rnystrom@google.com's avatar rnystrom@google.com Committed by Natalie Weizenbaum
Browse files

Fix type annotation.

R=nweiz@google.com

Review URL: https://codereview.chromium.org//596703005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@40603 260f80e4-7a28-3924-810f-c04153c831b5
parent 7569ed87
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment