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

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

Issue 16125005: Make new StreamController be async by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments Created 7 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 | « tests/standalone/io/web_socket_protocol_processor_test.dart ('k') | tools/dom/src/KeyboardEventStream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/zlib_test.dart
diff --git a/tests/standalone/io/zlib_test.dart b/tests/standalone/io/zlib_test.dart
index 6cfa46f20d2a76407279b8a20a8015f535875349..d1214aebffbe33c2e1d68eeef646dcfec01bc04e 100644
--- a/tests/standalone/io/zlib_test.dart
+++ b/tests/standalone/io/zlib_test.dart
@@ -11,7 +11,7 @@ void testZLibDeflate() {
test(int level, List<int> expected) {
var port = new ReceivePort();
var data = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
controller.stream.transform(new ZLibDeflater(gzip: false, level: level))
.fold([], (buffer, data) {
buffer.addAll(data);
@@ -31,7 +31,7 @@ void testZLibDeflate() {
void testZLibDeflateEmpty() {
var port = new ReceivePort();
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
controller.stream.transform(new ZLibDeflater(gzip: false, level: 6))
.fold([], (buffer, data) {
buffer.addAll(data);
@@ -48,7 +48,7 @@ void testZLibDeflateEmpty() {
void testZLibDeflateGZip() {
var port = new ReceivePort();
var data = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
controller.stream.transform(new ZLibDeflater())
.fold([], (buffer, data) {
buffer.addAll(data);
@@ -92,7 +92,7 @@ void testZLibInflate() {
test2(bool gzip, int level) {
var port = new ReceivePort();
var data = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
controller.stream
.transform(new ZLibDeflater(gzip: gzip, level: level))
.transform(new ZLibInflater())
« no previous file with comments | « tests/standalone/io/web_socket_protocol_processor_test.dart ('k') | tools/dom/src/KeyboardEventStream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698