| 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:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| 11 import 'package:barback/barback.dart'; | 11 import 'package:barback/barback.dart'; |
| 12 import 'package:barback/src/asset_graph.dart'; | 12 import 'package:barback/src/asset_graph.dart'; |
| 13 import 'package:pathos/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:unittest/compact_vm_config.dart'; | 15 import 'package:unittest/compact_vm_config.dart'; |
| 16 | 16 |
| 17 var _configured = false; | 17 var _configured = false; |
| 18 | 18 |
| 19 MockProvider _provider; | 19 MockProvider _provider; |
| 20 AssetGraph _graph; | 20 AssetGraph _graph; |
| 21 | 21 |
| 22 /// Calls to [buildShouldSucceed] and [buildShouldFail] set expectations on | 22 /// Calls to [buildShouldSucceed] and [buildShouldFail] set expectations on |
| 23 /// successive [BuildResult]s from [_graph]. This keeps track of how many calls | 23 /// successive [BuildResult]s from [_graph]. This keeps track of how many calls |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 | 473 |
| 474 MockAsset(this.id, this.contents); | 474 MockAsset(this.id, this.contents); |
| 475 | 475 |
| 476 Future<String> readAsString({Encoding encoding}) => | 476 Future<String> readAsString({Encoding encoding}) => |
| 477 new Future.value(contents); | 477 new Future.value(contents); |
| 478 | 478 |
| 479 Stream<List<int>> read() => throw new UnimplementedError(); | 479 Stream<List<int>> read() => throw new UnimplementedError(); |
| 480 | 480 |
| 481 String toString() => "MockAsset $id $contents"; | 481 String toString() => "MockAsset $id $contents"; |
| 482 } | 482 } |
| OLD | NEW |