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:io'; | 10 import 'dart:io'; |
10 | 11 |
11 import 'package:barback/barback.dart'; | 12 import 'package:barback/barback.dart'; |
12 import 'package:barback/src/cancelable_future.dart'; | 13 import 'package:barback/src/cancelable_future.dart'; |
13 import 'package:barback/src/utils.dart'; | 14 import 'package:barback/src/utils.dart'; |
14 import 'package:path/path.dart' as pathos; | 15 import 'package:path/path.dart' as pathos; |
15 import 'package:scheduled_test/scheduled_test.dart'; | 16 import 'package:scheduled_test/scheduled_test.dart'; |
16 import 'package:stack_trace/stack_trace.dart'; | 17 import 'package:stack_trace/stack_trace.dart'; |
17 import 'package:unittest/compact_vm_config.dart'; | 18 import 'package:unittest/compact_vm_config.dart'; |
18 | 19 |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 | 519 |
519 _MockAsset(this.id, this.contents); | 520 _MockAsset(this.id, this.contents); |
520 | 521 |
521 Future<String> readAsString({Encoding encoding}) => | 522 Future<String> readAsString({Encoding encoding}) => |
522 new Future.value(contents); | 523 new Future.value(contents); |
523 | 524 |
524 Stream<List<int>> read() => throw new UnimplementedError(); | 525 Stream<List<int>> read() => throw new UnimplementedError(); |
525 | 526 |
526 String toString() => "MockAsset $id $contents"; | 527 String toString() => "MockAsset $id $contents"; |
527 } | 528 } |
OLD | NEW |