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 barback.test.utils; | 5 library barback.test.utils; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:convert' show Encoding; | 8 import 'dart:convert' show Encoding; |
9 | 9 |
10 import 'package:barback/barback.dart'; | 10 import 'package:barback/barback.dart'; |
11 import 'package:barback/src/cancelable_future.dart'; | |
12 import 'package:barback/src/utils.dart'; | 11 import 'package:barback/src/utils.dart'; |
| 12 import 'package:barback/src/utils/cancelable_future.dart'; |
13 import 'package:path/path.dart' as pathos; | 13 import 'package:path/path.dart' as pathos; |
14 import 'package:scheduled_test/scheduled_test.dart'; | 14 import 'package:scheduled_test/scheduled_test.dart'; |
15 import 'package:stack_trace/stack_trace.dart'; | 15 import 'package:stack_trace/stack_trace.dart'; |
16 import 'package:unittest/compact_vm_config.dart'; | 16 import 'package:unittest/compact_vm_config.dart'; |
17 | 17 |
18 export 'transformer/bad.dart'; | 18 export 'transformer/bad.dart'; |
19 export 'transformer/bad_log.dart'; | 19 export 'transformer/bad_log.dart'; |
20 export 'transformer/catch_asset_not_found.dart'; | 20 export 'transformer/catch_asset_not_found.dart'; |
21 export 'transformer/check_content.dart'; | 21 export 'transformer/check_content.dart'; |
22 export 'transformer/check_content_and_rename.dart'; | 22 export 'transformer/check_content_and_rename.dart'; |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 | 582 |
583 _MockAsset(this.id, this.contents); | 583 _MockAsset(this.id, this.contents); |
584 | 584 |
585 Future<String> readAsString({Encoding encoding}) => | 585 Future<String> readAsString({Encoding encoding}) => |
586 new Future.value(contents); | 586 new Future.value(contents); |
587 | 587 |
588 Stream<List<int>> read() => throw new UnimplementedError(); | 588 Stream<List<int>> read() => throw new UnimplementedError(); |
589 | 589 |
590 String toString() => "MockAsset $id $contents"; | 590 String toString() => "MockAsset $id $contents"; |
591 } | 591 } |
OLD | NEW |