Run command validation on all commands. (#12246)

This makes command validation happen as part of `verifyThenRunCommand()`,
using a newly introduced protected method (`validateCommand()`) rather than
a `commandValidator` property (that subclasses were responsible for manually
invoking).
This commit is contained in:
Todd Volkert
2017-09-25 18:56:37 -07:00
committed by GitHub
parent 6420c75f26
commit a08b5e00af
11 changed files with 74 additions and 83 deletions

View File

@@ -103,8 +103,7 @@ class MockDeviceLogReader extends DeviceLogReader {
void applyMocksToCommand(FlutterCommand command) {
command
..applicationPackages = new MockApplicationPackageStore()
..commandValidator = () => true;
..applicationPackages = new MockApplicationPackageStore();
}
/// Common functionality for tracking mock interaction