migrate to super params (#100509)
This commit is contained in:
committed by
GitHub
parent
baa45a1718
commit
dcde8163ce
@@ -227,9 +227,9 @@ late Stream<String> mockStdInStream;
|
||||
class TestTerminal extends AnsiTerminal {
|
||||
TestTerminal({
|
||||
Stdio? stdio,
|
||||
Platform platform = const LocalPlatform(),
|
||||
super.platform = const LocalPlatform(),
|
||||
DateTime? now,
|
||||
}) : super(stdio: stdio ?? Stdio(), platform: platform, now: now ?? DateTime(2018));
|
||||
}) : super(stdio: stdio ?? Stdio(), now: now ?? DateTime(2018));
|
||||
|
||||
@override
|
||||
Stream<String> get keystrokes {
|
||||
|
||||
@@ -541,12 +541,12 @@ class TestDeviceManager extends DeviceManager {
|
||||
TestDeviceManager(
|
||||
List<Device> allDevices, {
|
||||
List<DeviceDiscovery>? deviceDiscoveryOverrides,
|
||||
required Logger logger,
|
||||
required Terminal terminal,
|
||||
required super.logger,
|
||||
required super.terminal,
|
||||
String? wellKnownId,
|
||||
}) : _fakeDeviceDiscoverer = FakePollingDeviceDiscovery(),
|
||||
_deviceDiscoverers = <DeviceDiscovery>[],
|
||||
super(logger: logger, terminal: terminal, userMessages: UserMessages()) {
|
||||
super(userMessages: UserMessages()) {
|
||||
if (wellKnownId != null) {
|
||||
_fakeDeviceDiscoverer.wellKnownIds.add(wellKnownId);
|
||||
}
|
||||
|
||||
@@ -374,8 +374,8 @@ void main() {
|
||||
}
|
||||
|
||||
class IntelliJValidatorTestTarget extends IntelliJValidator {
|
||||
IntelliJValidatorTestTarget(String title, String installPath, FileSystem fileSystem)
|
||||
: super(title, installPath, fileSystem: fileSystem, userMessages: UserMessages());
|
||||
IntelliJValidatorTestTarget(super.title, super.installPath, FileSystem fileSystem)
|
||||
: super(fileSystem: fileSystem, userMessages: UserMessages());
|
||||
|
||||
@override
|
||||
String get pluginsPath => 'plugins';
|
||||
|
||||
@@ -127,11 +127,11 @@ void main() {
|
||||
}
|
||||
|
||||
class FakeGroupedValidator extends GroupedValidator {
|
||||
FakeGroupedValidator(List<DoctorValidator> subValidators) : super(subValidators);
|
||||
FakeGroupedValidator(super.subValidators);
|
||||
}
|
||||
|
||||
class FakeDoctorValidator extends DoctorValidator {
|
||||
FakeDoctorValidator(String title) : super(title);
|
||||
FakeDoctorValidator(super.title);
|
||||
|
||||
@override
|
||||
Future<ValidationResult> validate() async {
|
||||
|
||||
@@ -489,10 +489,10 @@ abstract class FlutterTestDriver {
|
||||
|
||||
class FlutterRunTestDriver extends FlutterTestDriver {
|
||||
FlutterRunTestDriver(
|
||||
Directory projectFolder, {
|
||||
String? logPrefix,
|
||||
super.projectFolder, {
|
||||
super.logPrefix,
|
||||
this.spawnDdsInstance = true,
|
||||
}) : super(projectFolder, logPrefix: logPrefix);
|
||||
});
|
||||
|
||||
String? _currentRunningAppId;
|
||||
|
||||
@@ -760,8 +760,7 @@ class FlutterRunTestDriver extends FlutterTestDriver {
|
||||
}
|
||||
|
||||
class FlutterTestTestDriver extends FlutterTestDriver {
|
||||
FlutterTestTestDriver(Directory projectFolder, {String? logPrefix})
|
||||
: super(projectFolder, logPrefix: logPrefix);
|
||||
FlutterTestTestDriver(super.projectFolder, {super.logPrefix});
|
||||
|
||||
Future<void> test({
|
||||
String testFile = 'test/test.dart',
|
||||
|
||||
@@ -487,7 +487,7 @@ class TestFeatureFlags implements FeatureFlags {
|
||||
}
|
||||
|
||||
class FakeStatusLogger extends DelegatingLogger {
|
||||
FakeStatusLogger(Logger delegate) : super(delegate);
|
||||
FakeStatusLogger(super.delegate);
|
||||
|
||||
late Status status;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user