Index: tools/testing/dart/command_output.dart |
diff --git a/tools/testing/dart/command_output.dart b/tools/testing/dart/command_output.dart |
index 322b32ebd24087ac815aaab1eef032ef73eec64d..9b6f6e692c5af19d4f22bdb0abf8736a1b54e075 100644 |
--- a/tools/testing/dart/command_output.dart |
+++ b/tools/testing/dart/command_output.dart |
@@ -760,27 +760,6 @@ class JSCommandLineOutput extends CommandOutput |
} |
} |
-class PubCommandOutput extends CommandOutput { |
- PubCommandOutput(PubCommand command, int exitCode, bool timedOut, |
- List<int> stdout, List<int> stderr, Duration time) |
- : super(command, exitCode, timedOut, stdout, stderr, time, false, 0); |
- |
- Expectation result(TestCase testCase) { |
- // Handle crashes and timeouts first. |
- if (hasCrashed) return Expectation.crash; |
- if (hasTimedOut) return Expectation.timeout; |
- if (hasNonUtf8) return Expectation.nonUtf8Error; |
- |
- if (exitCode == 0) { |
- return Expectation.pass; |
- } else if ((command as PubCommand).command == 'get') { |
- return Expectation.pubGetError; |
- } else { |
- return Expectation.fail; |
- } |
- } |
-} |
- |
class ScriptCommandOutput extends CommandOutput { |
final Expectation _result; |
@@ -830,9 +809,6 @@ CommandOutput createCommandOutput(Command command, int exitCode, bool timedOut, |
} else if (command is JSCommandlineCommand) { |
return new JSCommandLineOutput( |
command, exitCode, timedOut, stdout, stderr, time); |
- } else if (command is PubCommand) { |
- return new PubCommandOutput( |
- command, exitCode, timedOut, stdout, stderr, time); |
} |
return new CommandOutput(command, exitCode, timedOut, stdout, stderr, time, |