OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 stream_state_helper; | 5 library stream_state_helper; |
6 | 6 |
7 import "package:test/test.dart"; | 7 import "package:unittest/unittest.dart"; |
8 import "dart:async"; | 8 import "dart:async"; |
9 import "dart:collection"; | 9 import "dart:collection"; |
10 | 10 |
11 class SubscriptionProtocolTest { | 11 class SubscriptionProtocolTest { |
12 final StreamProtocolTest _streamTest; | 12 final StreamProtocolTest _streamTest; |
13 final int id; | 13 final int id; |
14 StreamSubscription _subscription; | 14 StreamSubscription _subscription; |
15 | 15 |
16 SubscriptionProtocolTest(this.id, this._subscription, this._streamTest); | 16 SubscriptionProtocolTest(this.id, this._subscription, this._streamTest); |
17 | 17 |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 } | 580 } |
581 | 581 |
582 bool _testBroadcastCancel() { | 582 bool _testBroadcastCancel() { |
583 _actual = "*[BroadcastCancel]"; | 583 _actual = "*[BroadcastCancel]"; |
584 return true; | 584 return true; |
585 } | 585 } |
586 | 586 |
587 /** Returns a representation of the event it was tested against. */ | 587 /** Returns a representation of the event it was tested against. */ |
588 String toString() => _actual; | 588 String toString() => _actual; |
589 } | 589 } |
OLD | NEW |