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

Unified Diff: tests/lib/async/stream_group_by_test.dart

Issue 2872263003: Rename StreamGroup to GroupedEvents. (Closed)
Patch Set: Created 3 years, 7 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 | « sdk/lib/async/stream.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_group_by_test.dart
diff --git a/tests/lib/async/stream_group_by_test.dart b/tests/lib/async/stream_group_by_test.dart
index edba9e089a9e49947a8cfb58ee7bedbaca6c731e..2abbf2647a4c23c0a330d173686dfc91aa2e3b85 100644
--- a/tests/lib/async/stream_group_by_test.dart
+++ b/tests/lib/async/stream_group_by_test.dart
@@ -18,7 +18,7 @@ void main() {
test("splits", () async {
var grouped = stringStream.groupBy<int>(len);
var byLength = <int, Future<List<String>>>{};
- await for (StreamGroup<int, String> group in grouped) {
+ await for (GroupedEvents<int, String> group in grouped) {
byLength[group.key] = group.values.toList();
}
Expect.listEquals([1, 2, 4, 3], byLength.keys.toList());
@@ -31,7 +31,7 @@ void main() {
test("empty", () async {
var grouped = emptyStream.groupBy<int>(len);
var byLength = <int, Future<List<String>>>{};
- await for (StreamGroup<int, String> group in grouped) {
+ await for (GroupedEvents<int, String> group in grouped) {
byLength[group.key] = group.values.toList();
}
Expect.isTrue(byLength.isEmpty);
@@ -40,7 +40,7 @@ void main() {
test("single group", () async {
var grouped = repeatStream(5, "x").groupBy<int>(len);
var byLength = <int, Future<List<String>>>{};
- await for (StreamGroup<int, String> group in grouped) {
+ await for (GroupedEvents<int, String> group in grouped) {
byLength[group.key] = group.values.toList();
}
Expect.listEquals([1], byLength.keys.toList());
@@ -52,7 +52,7 @@ void main() {
var byLength = <int, Future<List<String>>>{};
bool caught = false;
try {
- await for (StreamGroup<int, String> group in grouped) {
+ await for (GroupedEvents<int, String> group in grouped) {
byLength[group.key] = group.values.toList();
}
} catch (e) {
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698