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

Unified Diff: tests/standalone/io/https_client_certificate_test.dart

Issue 13548002: Add Iterable.fold (and Stream.fold) which replace `reduce`. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: tests/standalone/io/https_client_certificate_test.dart
diff --git a/tests/standalone/io/https_client_certificate_test.dart b/tests/standalone/io/https_client_certificate_test.dart
index 1066c01aab07fd391c3f0f2f2622a42b9935714d..62144046cab2f263239414e4a407d1277d46eb3d 100644
--- a/tests/standalone/io/https_client_certificate_test.dart
+++ b/tests/standalone/io/https_client_certificate_test.dart
@@ -31,8 +31,8 @@ Function test() {
.then((response) {
Expect.equals('CN=localhost', response.certificate.subject);
Expect.equals('CN=myauthority', response.certificate.issuer);
- return response.reduce(<int>[],
- (message, data) => message..addAll(data));
+ return response.fold(<int>[],
+ (message, data) => message..addAll(data));
})
.then((message) {
String received = new String.fromCharCodes(message);

Powered by Google App Engine
This is Rietveld 408576698