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

Unified Diff: utils/tests/pub/test_pub.dart

Issue 11865005: Remove Futures class, move methods to Future. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « utils/pub/version_solver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index 5caa09217ae3019221ffedad355b39e9f0fbd664..be04cf481664771d89d297ba91bd54fa8fb5ad72 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -574,7 +574,7 @@ void confirmPublish(ScheduledProcess pub) {
Future _doPub(Function fn, sandboxDir, List args, Future<Uri> tokenEndpoint) {
String pathInSandbox(path) => join(getFullPath(sandboxDir), path);
- return Futures.wait([
+ return Future.wait([
ensureDir(pathInSandbox(appPath)),
_awaitObject(args),
tokenEndpoint == null ? new Future.immediate(null) : tokenEndpoint
@@ -915,7 +915,7 @@ class DirectoryDescriptor extends Descriptor {
final childFutures =
contents.mappedBy((child) => child.create(dir)).toList();
// Only complete once all of the children have been created too.
- return Futures.wait(childFutures).then((_) => dir);
+ return Future.wait(childFutures).then((_) => dir);
});
}
@@ -936,7 +936,7 @@ class DirectoryDescriptor extends Descriptor {
contents.mappedBy((entry) => entry.validate(dir)).toList();
// If they are all valid, the directory is valid.
- return Futures.wait(entryFutures).then((entries) => null);
+ return Future.wait(entryFutures).then((entries) => null);
});
}
@@ -1072,7 +1072,7 @@ class TarFileDescriptor extends Descriptor {
var tempDir;
return createTempDir().then((_tempDir) {
tempDir = _tempDir;
- return Futures.wait(contents.mappedBy((child) => child.create(tempDir)));
+ return Future.wait(contents.mappedBy((child) => child.create(tempDir)));
}).then((createdContents) {
return consumeInputStream(createTarGz(createdContents, baseDir: tempDir));
}).then((bytes) {
@@ -1482,7 +1482,7 @@ Future _awaitObject(object) {
// Unroll nested futures.
if (object is Future) return object.then(_awaitObject);
if (object is Collection) {
- return Futures.wait(object.mappedBy(_awaitObject).toList());
+ return Future.wait(object.mappedBy(_awaitObject).toList());
}
if (object is! Map) return new Future.immediate(object);
@@ -1491,7 +1491,7 @@ Future _awaitObject(object) {
pairs.add(_awaitObject(value)
.then((resolved) => new Pair(key, resolved)));
});
- return Futures.wait(pairs).then((resolvedPairs) {
+ return Future.wait(pairs).then((resolvedPairs) {
var map = {};
for (var pair in resolvedPairs) {
map[pair.first] = pair.last;
« no previous file with comments | « utils/pub/version_solver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698