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

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

Issue 16007003: Optimize internals of multiplex-streams. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address 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 | « sdk/lib/mdv_observe_impl/mdv_observe_impl.dart ('k') | tools/dom/src/PathObserver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_controller_async_test.dart
diff --git a/tests/lib/async/stream_controller_async_test.dart b/tests/lib/async/stream_controller_async_test.dart
index 53be91005be249e8497bcff6447cc80b59971768..1ed514372a13dead90d79a636c1dc2b00056bf5c 100644
--- a/tests/lib/async/stream_controller_async_test.dart
+++ b/tests/lib/async/stream_controller_async_test.dart
@@ -429,9 +429,9 @@ testRethrow() {
testFuture("drain", (s, act) => s.drain().then(act));
}
-void testMultiplex() {
- test("multiplex-basic", () {
- StreamController<int> c = new StreamController.multiplex(
+void testBroadcastController() {
+ test("broadcast-controller-basic", () {
+ StreamController<int> c = new StreamController.broadcast(
onListen: expectAsync0(() {}),
onCancel: expectAsync0(() {})
);
@@ -441,8 +441,8 @@ void testMultiplex() {
c.close();
});
- test("multiplex-listen-twice", () {
- StreamController<int> c = new StreamController.multiplex(
+ test("broadcast-controller-listen-twice", () {
+ StreamController<int> c = new StreamController.broadcast(
onListen: expectAsync0(() {}),
onCancel: expectAsync0(() {})
);
@@ -453,8 +453,8 @@ void testMultiplex() {
c.close();
});
- test("multiplex-listen-twice-non-overlap", () {
- StreamController<int> c = new StreamController.multiplex(
+ test("broadcast-controller-listen-twice-non-overlap", () {
+ StreamController<int> c = new StreamController.broadcast(
onListen: expectAsync0(() {}, count: 2),
onCancel: expectAsync0(() {}, count: 2)
);
@@ -466,8 +466,8 @@ void testMultiplex() {
c.close();
});
- test("multiplex-individual-pause", () {
- StreamController<int> c = new StreamController.multiplex(
+ test("broadcast-controller-individual-pause", () {
+ StreamController<int> c = new StreamController.broadcast(
onListen: expectAsync0(() {}),
onCancel: expectAsync0(() {})
);
@@ -490,5 +490,5 @@ main() {
testExtraMethods();
testPause();
testRethrow();
- testMultiplex();
+ testBroadcastController();
}
« no previous file with comments | « sdk/lib/mdv_observe_impl/mdv_observe_impl.dart ('k') | tools/dom/src/PathObserver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698