Index: tests/corelib/growable_list_test.dart |
diff --git a/tests/corelib/growable_list_test.dart b/tests/corelib/growable_list_test.dart |
index 0e26138a9f8213b5e63f7dd87b0e960896efbec6..98b4e1ff725350336f499d615986202b4d4200b0 100644 |
--- a/tests/corelib/growable_list_test.dart |
+++ b/tests/corelib/growable_list_test.dart |
@@ -5,11 +5,11 @@ |
// Sanity check on the growing behavior of a growable list. |
import "package:expect/expect.dart"; |
-import "dart:collection" show EfficientLengthIterable; |
+import "dart:collection" show IterableBase; |
// Iterable generating numbers in range [0..count). |
// May perform callback at some point underways. |
-class TestIterableBase extends Iterable<int> { |
+class TestIterableBase extends IterableBase<int> { |
final int length; |
final int count; |
// call [callback] if generating callbackIndex. |
@@ -26,8 +26,9 @@ class TestIterable extends TestIterableBase { |
int get length => throw "SHOULD NOT BE CALLED"; |
} |
+// Implement Set for private EfficientLength interface. |
class EfficientTestIterable extends TestIterableBase |
- implements EfficientLengthIterable<int> { |
+ implements Set<int> { |
EfficientTestIterable(length, count, [callbackIndex = -1, callback]) |
: super(length, count, callbackIndex, callback); |
// Avoid warnings because we don't actually implement Set. |
@@ -56,7 +57,7 @@ class CallbackIterator implements Iterator<int> { |
void main() { |
- // Without EfficientLengthIterable interface |
+ // Without EfficientLength interface |
{ |
// Change length of list after 20 additions. |
var l = []; |
@@ -79,7 +80,7 @@ void main() { |
}, (e) => e is ConcurrentModificationError); |
} |
- // With EfficientLengthIterable interface (uses length). |
+ // With EfficientLength interface (uses length). |
{ |
// Change length of list after 20 additions. |
var l = []; |