Add linux doctor implementation (#34755)

This commit is contained in:
Jonah Williams
2019-06-20 08:20:57 -07:00
committed by GitHub
parent ada95ef915
commit b9932d55e7
5 changed files with 268 additions and 4 deletions

View File

@@ -585,3 +585,25 @@ class MockResidentCompiler extends BasicMock implements ResidentCompiler {
return CompilerOutput(outputPath, 0, <Uri>[]);
}
}
/// A fake implementation of [ProcessResult].
class FakeProcessResult implements ProcessResult {
FakeProcessResult({
this.exitCode = 0,
this.pid = 1,
this.stderr,
this.stdout,
});
@override
final int exitCode;
@override
final int pid;
@override
final dynamic stderr;
@override
final dynamic stdout;
}