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

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

Issue 556423002: Fix an analyzer error in barback. (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/test/utils.dart
diff --git a/pkg/barback/test/utils.dart b/pkg/barback/test/utils.dart
index 235a68fbdbb3b16cd894d0d2d937a1d379206c09..c24b58c3e58e488a5b360453d673731c47d88b6e 100644
--- a/pkg/barback/test/utils.dart
+++ b/pkg/barback/test/utils.dart
@@ -560,8 +560,8 @@ class MockProvider implements StaticPackageProvider {
(async ? _errors : _syncErrors).add(new AssetId.parse(name));
}
- List<AssetId> getAllAssets(String package) =>
- _assets[package].map((asset) => asset.id);
+ Stream<AssetId> getAllAssetIds(String package) =>
+ new Stream.fromIterable(_assets[package].map((asset) => asset.id));
Future<Asset> getAsset(AssetId id) {
// Eagerly load the asset so we can test an asset's value changing between
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698