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

Unified Diff: tests/standalone/io/web_socket_protocol_processor_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: 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
Index: tests/standalone/io/web_socket_protocol_processor_test.dart
diff --git a/tests/standalone/io/web_socket_protocol_processor_test.dart b/tests/standalone/io/web_socket_protocol_processor_test.dart
index b655b13e1598b4391d467c15f0ced8ac79241c2e..2aa9fb953eb5681414bd91c6d8db941d31ceedf4 100644
--- a/tests/standalone/io/web_socket_protocol_processor_test.dart
+++ b/tests/standalone/io/web_socket_protocol_processor_test.dart
@@ -101,7 +101,7 @@ void testFullMessages() {
int messageCount = 0;
// Use the same web socket protocol transformer for all frames.
var transformer = new _WebSocketProtocolTransformer();
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
WebSocketMessageCollector mc = new WebSocketMessageCollector(
controller.stream.transform(transformer),
message);
@@ -165,7 +165,7 @@ void testFullMessages() {
void testFragmentedMessages() {
// Use the same web socket protocol transformer for all frames.
var transformer = new _WebSocketProtocolTransformer();
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
WebSocketMessageCollector mc = new WebSocketMessageCollector(
controller.stream.transform(transformer));
@@ -230,7 +230,7 @@ void testFragmentedMessages() {
void testUnmaskedMessage() {
var transformer = new _WebSocketProtocolTransformer(true);
- var controller = new StreamController();
+ var controller = new StreamController(sync: true);
var port = new ReceivePort();
controller.stream.transform(transformer).listen((_) {}, onError: (e) {
port.close();

Powered by Google App Engine
This is Rietveld 408576698