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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user