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

Side by Side Diff: pkg/barback/test/stream_replayer_test.dart

Issue 261823008: Reorganize barback's source files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: re-add barback/lib/src/internal_asset.dart Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/barback/test/stream_pool_test.dart ('k') | pkg/barback/test/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) 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 barback.test.stream_replayer_test; 5 library barback.test.stream_replayer_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:barback/src/stream_replayer.dart';
10 import 'package:barback/src/utils.dart'; 9 import 'package:barback/src/utils.dart';
10 import 'package:barback/src/utils/stream_replayer.dart';
11 import 'package:unittest/unittest.dart'; 11 import 'package:unittest/unittest.dart';
12 12
13 import 'utils.dart'; 13 import 'utils.dart';
14 14
15 main() { 15 main() {
16 initConfig(); 16 initConfig();
17 17
18 test("a replay that's retrieved before the stream is finished replays the " 18 test("a replay that's retrieved before the stream is finished replays the "
19 "stream", () { 19 "stream", () {
20 var controller = new StreamController<int>(); 20 var controller = new StreamController<int>();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 var controller = new StreamController<int>(onListen: () { 92 var controller = new StreamController<int>(onListen: () {
93 isOpened = true; 93 isOpened = true;
94 }); 94 });
95 var replayer = new StreamReplayer<int>(controller.stream); 95 var replayer = new StreamReplayer<int>(controller.stream);
96 replayer.getReplay(); 96 replayer.getReplay();
97 replayer.getReplay(); 97 replayer.getReplay();
98 98
99 expect(pumpEventQueue().then((_) => isOpened), completion(isFalse)); 99 expect(pumpEventQueue().then((_) => isOpened), completion(isFalse));
100 }); 100 });
101 } 101 }
OLDNEW
« no previous file with comments | « pkg/barback/test/stream_pool_test.dart ('k') | pkg/barback/test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698