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

Unified Diff: pkg/barback/test/transformer/declare_assets.dart

Issue 241223005: Fix a deadlock bug with lazy transformer pipelining. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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: pkg/barback/test/transformer/declare_assets.dart
diff --git a/pkg/barback/test/transformer/declare_assets.dart b/pkg/barback/test/transformer/declare_assets.dart
index 9a14525f7edcc3114463386d2840542f9efa9947..d1158b8658d97889139cfc97adcca819c58978e0 100644
--- a/pkg/barback/test/transformer/declare_assets.dart
+++ b/pkg/barback/test/transformer/declare_assets.dart
@@ -22,9 +22,10 @@ class DeclareAssetsTransformer extends MockTransformer
/// These assets' contents will be identical to their ids.
final List<AssetId> emitted;
- DeclareAssetsTransformer(Iterable<String> declared, Iterable<String> emitted)
+ DeclareAssetsTransformer(Iterable<String> declared, [Iterable<String> emitted])
: this.declared = declared.map((id) => new AssetId.parse(id)).toList(),
- this.emitted = emitted.map((id) => new AssetId.parse(id)).toList();
+ this.emitted = (emitted == null ? declared : emitted)
+ .map((id) => new AssetId.parse(id)).toList();
Future<bool> doIsPrimary(AssetId id) => new Future.value(true);
« no previous file with comments | « pkg/barback/test/package_graph/lazy_transformer_test.dart ('k') | pkg/barback/test/transformer/lazy_assets.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698