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

Unified Diff: pkg/unittest/lib/mock.dart

Issue 11412086: Make 'where' lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: FilteredIterable/Iterator -> WhereIterable/Iterator. Created 8 years, 1 month 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/unittest/lib/mock.dart
diff --git a/pkg/unittest/lib/mock.dart b/pkg/unittest/lib/mock.dart
index 2418d85217e5b5a009af400f799877d77091a786..d1a98d7dcc36962fbff20c585f48f4d649d009f6 100644
--- a/pkg/unittest/lib/mock.dart
+++ b/pkg/unittest/lib/mock.dart
@@ -1461,7 +1461,7 @@ class Mock {
if (name == null) { // This log is not shared.
log.logs.clear();
} else { // This log may be shared.
- log.logs = log.logs.where((e) => e.mockName != name);
+ log.logs = log.logs.where((e) => e.mockName != name).toList();
}
}
}

Powered by Google App Engine
This is Rietveld 408576698