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

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: Address comments and rebase. 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 ac6d94922cb864995f27da4c7f83b2f040da4877..798e819660e3347a4a9171af6a374cb246936ceb 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.
« no previous file with comments | « tests/lib/async/slow_consumer_test.dart ('k') | tools/dom/templates/html/impl/impl_Geolocation.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698