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

Side by Side Diff: lib/src/util/stream_channel.dart

Issue 1053443002: Rename the package to "test". (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 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 unified diff | Download patch
« no previous file with comments | « lib/src/util/remote_exception.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library unittest.stream_channel; 5 library test.stream_channel;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 /// An abstract class representing a two-way communication channel. 9 /// An abstract class representing a two-way communication channel.
10 /// 10 ///
11 /// Subclasses can mix in [StreamChannelMixin] to get default implementations of 11 /// Subclasses can mix in [StreamChannelMixin] to get default implementations of
12 /// the various instance methods. 12 /// the various instance methods.
13 abstract class StreamChannel<T> { 13 abstract class StreamChannel<T> {
14 /// The stream that emits values from the other endpoint. 14 /// The stream that emits values from the other endpoint.
15 Stream<T> get stream; 15 Stream<T> get stream;
(...skipping 23 matching lines...) Expand all
39 } 39 }
40 40
41 /// A mixin that implements the instance methods of [StreamChannel] in terms of 41 /// A mixin that implements the instance methods of [StreamChannel] in terms of
42 /// [stream] and [sink]. 42 /// [stream] and [sink].
43 abstract class StreamChannelMixin<T> implements StreamChannel<T> { 43 abstract class StreamChannelMixin<T> implements StreamChannel<T> {
44 void pipe(StreamChannel<T> other) { 44 void pipe(StreamChannel<T> other) {
45 stream.pipe(other.sink); 45 stream.pipe(other.sink);
46 other.stream.pipe(sink); 46 other.stream.pipe(sink);
47 } 47 }
48 } 48 }
OLDNEW
« no previous file with comments | « lib/src/util/remote_exception.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698