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

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

Issue 14196003: Change StreamController constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix some bugs. Created 7 years, 8 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/lib/async/stream_state_helper.dart
diff --git a/tests/lib/async/stream_state_helper.dart b/tests/lib/async/stream_state_helper.dart
index b982d9d23be4e82fd13fec277e913907f31fbeac..24d827cb1f605a3f2a365b441024b48b934fd1ce 100644
--- a/tests/lib/async/stream_state_helper.dart
+++ b/tests/lib/async/stream_state_helper.dart
@@ -18,13 +18,17 @@ class StreamProtocolTest {
StreamProtocolTest([bool broadcast = false]) {
if (broadcast) {
_controller = new StreamController.broadcast(
- onPauseStateChange: _onPause,
- onSubscriptionStateChange: _onSubcription);
+ onListen: _onSubcription,
+ onPause: _onPause,
+ onResume: _onPause,
+ onCancel: _onSubcription);
// TODO(lrn): Make it work with multiple subscribers too.
} else {
_controller = new StreamController(
- onPauseStateChange: _onPause,
- onSubscriptionStateChange: _onSubcription);
+ onListen: _onSubcription,
+ onPause: _onPause,
+ onResume: _onPause,
+ onCancel: _onSubcription);
}
_onComplete = expectAsync0((){
_onComplete = null; // Being null marks the test to be complete.

Powered by Google App Engine
This is Rietveld 408576698