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

Unified Diff: lib/src/util/multi_channel.dart

Issue 959383004: Add a host script to run in a browser and start iframes for suites. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Code review changes Created 5 years, 10 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 | « lib/src/runner/browser/static/index.html ('k') | lib/src/util/stream_channel.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/util/multi_channel.dart
diff --git a/lib/src/util/multi_channel.dart b/lib/src/util/multi_channel.dart
index 3732a17882e314b77f9cb02c7882c71e663c81c3..4b19cc528b4b6ed4509031b2e2c2fb0fa5d1fd7c 100644
--- a/lib/src/util/multi_channel.dart
+++ b/lib/src/util/multi_channel.dart
@@ -6,6 +6,8 @@ library unittest.multi_channel;
import 'dart:async';
+import 'stream_channel.dart';
+
/// A class that multiplexes multiple virtual channels across a single
/// underlying transport layer.
///
@@ -39,7 +41,7 @@ import 'dart:async';
///
/// Each virtual channel may be closed individually. When all of them are
/// closed, the underlying [StreamSink] is closed automatically.
-abstract class MultiChannel {
+abstract class MultiChannel implements StreamChannel {
/// The default input stream.
///
/// This connects to the remote [sink].
@@ -77,7 +79,7 @@ abstract class MultiChannel {
///
/// This is private so that [VirtualChannel] can inherit from [MultiChannel]
/// without having to implement all the private members.
-class _MultiChannel implements MultiChannel {
+class _MultiChannel extends StreamChannelMixin implements MultiChannel {
/// The inner stream over which all communication is received.
///
/// This will be `null` if the underlying communication channel is closed.
@@ -223,7 +225,7 @@ class _MultiChannel implements MultiChannel {
/// This implements [MultiChannel] for convenience.
/// [VirtualChannel.virtualChannel] is semantically identical to the parent's
/// [MultiChannel.virtualChannel].
-class VirtualChannel implements MultiChannel {
+class VirtualChannel extends StreamChannelMixin implements MultiChannel {
/// The [MultiChannel] that created this.
final MultiChannel _parent;
« no previous file with comments | « lib/src/runner/browser/static/index.html ('k') | lib/src/util/stream_channel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698