OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 // We need to use the 'io' prefix here, otherwise io.exitCode will shadow | 6 // We need to use the 'io' prefix here, otherwise io.exitCode will shadow |
7 // CommandOutput.exitCode in subclasses of CommandOutput. | 7 // CommandOutput.exitCode in subclasses of CommandOutput. |
8 import 'dart:io' as io; | 8 import 'dart:io' as io; |
9 | 9 |
| 10 import 'package:status_file/expectation.dart'; |
| 11 |
10 import 'command_output.dart'; | 12 import 'command_output.dart'; |
11 import 'configuration.dart'; | 13 import 'configuration.dart'; |
12 import 'expectation.dart'; | |
13 import 'path.dart'; | 14 import 'path.dart'; |
14 import 'utils.dart'; | 15 import 'utils.dart'; |
15 | 16 |
16 /// A command executed as a step in a test case. | 17 /// A command executed as a step in a test case. |
17 class Command { | 18 class Command { |
18 static Command contentShell( | 19 static Command contentShell( |
19 String executable, | 20 String executable, |
20 String htmlFile, | 21 String htmlFile, |
21 List<String> options, | 22 List<String> options, |
22 List<String> dartFlags, | 23 List<String> dartFlags, |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 557 |
557 void _buildHashCode(HashCodeBuilder builder) { | 558 void _buildHashCode(HashCodeBuilder builder) { |
558 super._buildHashCode(builder); | 559 super._buildHashCode(builder); |
559 builder.addJson(_link); | 560 builder.addJson(_link); |
560 builder.addJson(_target); | 561 builder.addJson(_target); |
561 } | 562 } |
562 | 563 |
563 bool _equal(MakeSymlinkCommand other) => | 564 bool _equal(MakeSymlinkCommand other) => |
564 super._equal(other) && _link == other._link && _target == other._target; | 565 super._equal(other) && _link == other._link && _target == other._target; |
565 } | 566 } |
OLD | NEW |