Index: tools/testing/dart/record_and_replay.dart |
diff --git a/tools/testing/dart/record_and_replay.dart b/tools/testing/dart/record_and_replay.dart |
index 022c35d02f573561310c6f5210c73f893feb26a1..6f29037b2e5423cc8610b1119e54bd15f396e1f0 100644 |
--- a/tools/testing/dart/record_and_replay.dart |
+++ b/tools/testing/dart/record_and_replay.dart |
@@ -34,7 +34,7 @@ import 'test_runner.dart'; |
*/ |
List<String> makePathsRelativeToDart(String cwd, List<String> arguments) { |
- var relativeArguments = []; |
+ var relativeArguments = <String>[]; |
for (var rawArgument in arguments) { |
if (rawArgument.startsWith(cwd)) { |
var relative = new Path(rawArgument).relativeTo(new Path(cwd)); |
@@ -49,7 +49,7 @@ List<String> makePathsRelativeToDart(String cwd, List<String> arguments) { |
class TestCaseRecorder { |
Path _outputPath; |
List<Map> _recordedCommandInvocations = []; |
- var _cwd; |
+ String _cwd; |
TestCaseRecorder(this._outputPath) { |
_cwd = Directory.current.path; |
@@ -83,7 +83,7 @@ class TestCaseRecorder { |
class TestCaseOutputArchive { |
Map<String, Map> _commandOutputRecordings; |
- var _cwd; |
+ String _cwd; |
TestCaseOutputArchive() { |
_cwd = Directory.current.path; |