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

Unified Diff: pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart

Issue 12678011: Miscellaneous small improvements for scheduled_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Guard against issue 9151 more thoroughly. Created 7 years, 9 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 | « pkg/scheduled_test/lib/scheduled_process.dart ('k') | pkg/scheduled_test/lib/src/schedule_error.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart
diff --git a/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart b/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart
index 1dbb7a4b322dfa4c6ce6487b5ea5cb4c41dea513..c4d862fff947b670ed1a08be059a4ae5c8d0f313 100644
--- a/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart
+++ b/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart
@@ -18,11 +18,13 @@ final path.Builder _path = new path.Builder(style: path.Style.posix);
/// A descriptor describing a directory containing multiple files.
class DirectoryDescriptor extends Descriptor {
- /// The entries contained within this directory.
- final Iterable<Descriptor> contents;
+ /// The entries contained within this directory. This is intentionally
+ /// mutable.
+ final List<Descriptor> contents;
- DirectoryDescriptor(String name, this.contents)
- : super(name);
+ DirectoryDescriptor(String name, Iterable<Descriptor> contents)
+ : super(name),
+ contents = contents.toList();
Future create([String parent]) => schedule(() {
if (parent == null) parent = defaultRoot;
« no previous file with comments | « pkg/scheduled_test/lib/scheduled_process.dart ('k') | pkg/scheduled_test/lib/src/schedule_error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698