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

Unified Diff: packages/matcher/test/test_utils.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/matcher/test/string_matchers_test.dart ('k') | packages/meta/.packages » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/matcher/test/test_utils.dart
diff --git a/packages/matcher/test/test_utils.dart b/packages/matcher/test/test_utils.dart
index f95c2b9504cef7564e0f3ebcf104e658ef89a0fe..a0dad48b3faa02734f52821e77fc1ef2c07af52d 100644
--- a/packages/matcher/test/test_utils.dart
+++ b/packages/matcher/test/test_utils.dart
@@ -2,10 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library matcher.test_utils;
-
-import 'dart:collection';
-
import 'package:test/test.dart';
void shouldFail(value, Matcher matcher, expected) {
@@ -45,25 +41,12 @@ class HasPrice extends CustomMatcher {
featureValueOf(actual) => actual.price;
}
-class SimpleIterable extends IterableBase<int> {
+class SimpleIterable extends Iterable<int> {
final int count;
SimpleIterable(this.count);
- bool contains(int val) => count < val ? false : true;
-
- bool any(bool f(element)) {
- for (var i = 0; i <= count; i++) {
- if (f(i)) return true;
- }
- return false;
- }
-
- String toString() => "<[$count]>";
-
- Iterator get iterator {
- return new _SimpleIterator(count);
- }
+ Iterator<int> get iterator => new _SimpleIterator(count);
}
class _SimpleIterator implements Iterator<int> {
« no previous file with comments | « packages/matcher/test/string_matchers_test.dart ('k') | packages/meta/.packages » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698