| 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:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:convert' show Encoding; | 9 import 'dart:convert' show Encoding; |
| 10 | 10 |
| 11 import 'package:barback/barback.dart'; | 11 import 'package:barback/barback.dart'; |
| 12 import 'package:barback/src/cancelable_future.dart'; | 12 import 'package:barback/src/cancelable_future.dart'; |
| 13 import 'package:barback/src/utils.dart'; | 13 import 'package:barback/src/utils.dart'; |
| 14 import 'package:path/path.dart' as pathos; | 14 import 'package:path/path.dart' as pathos; |
| 15 import 'package:scheduled_test/scheduled_test.dart'; | 15 import 'package:scheduled_test/scheduled_test.dart'; |
| 16 import 'package:stack_trace/stack_trace.dart'; | 16 import 'package:stack_trace/stack_trace.dart'; |
| 17 import 'package:unittest/compact_vm_config.dart'; | 17 import 'package:unittest/compact_vm_config.dart'; |
| 18 | 18 |
| 19 export 'transformer/bad.dart'; | 19 export 'transformer/bad.dart'; |
| 20 export 'transformer/bad_log.dart'; | 20 export 'transformer/bad_log.dart'; |
| 21 export 'transformer/catch_asset_not_found.dart'; | 21 export 'transformer/catch_asset_not_found.dart'; |
| 22 export 'transformer/check_content.dart'; | 22 export 'transformer/check_content.dart'; |
| 23 export 'transformer/check_content_and_rename.dart'; | 23 export 'transformer/check_content_and_rename.dart'; |
| 24 export 'transformer/conditionally_consume_primary.dart'; | 24 export 'transformer/conditionally_consume_primary.dart'; |
| 25 export 'transformer/create_asset.dart'; | 25 export 'transformer/create_asset.dart'; |
| 26 export 'transformer/declare_assets.dart'; |
| 27 export 'transformer/declaring_bad.dart'; |
| 28 export 'transformer/declaring_rewrite.dart'; |
| 26 export 'transformer/emit_nothing.dart'; | 29 export 'transformer/emit_nothing.dart'; |
| 27 export 'transformer/has_input.dart'; | 30 export 'transformer/has_input.dart'; |
| 28 export 'transformer/lazy_bad.dart'; | 31 export 'transformer/lazy_bad.dart'; |
| 29 export 'transformer/lazy_many_to_one.dart'; | 32 export 'transformer/lazy_many_to_one.dart'; |
| 30 export 'transformer/lazy_rewrite.dart'; | 33 export 'transformer/lazy_rewrite.dart'; |
| 31 export 'transformer/many_to_one.dart'; | 34 export 'transformer/many_to_one.dart'; |
| 32 export 'transformer/mock.dart'; | 35 export 'transformer/mock.dart'; |
| 33 export 'transformer/one_to_many.dart'; | 36 export 'transformer/one_to_many.dart'; |
| 34 export 'transformer/rewrite.dart'; | 37 export 'transformer/rewrite.dart'; |
| 35 | 38 |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 | 575 |
| 573 _MockAsset(this.id, this.contents); | 576 _MockAsset(this.id, this.contents); |
| 574 | 577 |
| 575 Future<String> readAsString({Encoding encoding}) => | 578 Future<String> readAsString({Encoding encoding}) => |
| 576 new Future.value(contents); | 579 new Future.value(contents); |
| 577 | 580 |
| 578 Stream<List<int>> read() => throw new UnimplementedError(); | 581 Stream<List<int>> read() => throw new UnimplementedError(); |
| 579 | 582 |
| 580 String toString() => "MockAsset $id $contents"; | 583 String toString() => "MockAsset $id $contents"; |
| 581 } | 584 } |
| OLD | NEW |