Prepare dev (minus flutter_gallery) for use_super_parameters (#100516)
This commit is contained in:
committed by
GitHub
parent
43029bebc4
commit
195a1cc413
@@ -14,7 +14,7 @@ Future<void> main(List<String> args) async {
|
||||
}
|
||||
|
||||
class FakeBuildTestTask extends BuildTestTask {
|
||||
FakeBuildTestTask(List<String> args) : super(args, runFlutterClean: false) {
|
||||
FakeBuildTestTask(super.args) : super(runFlutterClean: false) {
|
||||
deviceOperatingSystem = DeviceOperatingSystem.fake;
|
||||
}
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ abstract class _Benchmark {
|
||||
|
||||
/// Times how long it takes to analyze the Flutter repository.
|
||||
class _FlutterRepoBenchmark extends _Benchmark {
|
||||
_FlutterRepoBenchmark({bool watch = false}) : super(watch: watch);
|
||||
_FlutterRepoBenchmark({super.watch});
|
||||
|
||||
@override
|
||||
String get title => 'Flutter repo';
|
||||
@@ -100,7 +100,7 @@ class _FlutterRepoBenchmark extends _Benchmark {
|
||||
|
||||
/// Times how long it takes to analyze the generated "mega_gallery" app.
|
||||
class _MegaGalleryBenchmark extends _Benchmark {
|
||||
_MegaGalleryBenchmark({bool watch = false}) : super(watch: watch);
|
||||
_MegaGalleryBenchmark({super.watch});
|
||||
|
||||
@override
|
||||
String get title => 'mega gallery';
|
||||
|
||||
@@ -1029,35 +1029,23 @@ const List<String> _kCommonScoreKeys = <String>[
|
||||
|
||||
class PerfTestWithSkSL extends PerfTest {
|
||||
PerfTestWithSkSL(
|
||||
String testDirectory,
|
||||
String testTarget,
|
||||
String timelineFileName, {
|
||||
bool measureCpuGpu = false,
|
||||
String? testDriver,
|
||||
bool needsFullTimeline = true,
|
||||
List<String>? benchmarkScoreKeys,
|
||||
}) : super(
|
||||
testDirectory,
|
||||
testTarget,
|
||||
timelineFileName,
|
||||
measureCpuGpu: measureCpuGpu,
|
||||
testDriver: testDriver,
|
||||
needsFullTimeline: needsFullTimeline,
|
||||
benchmarkScoreKeys: benchmarkScoreKeys,
|
||||
);
|
||||
super.testDirectory,
|
||||
super.testTarget,
|
||||
String super.timelineFileName, {
|
||||
super.measureCpuGpu = false,
|
||||
super.testDriver,
|
||||
super.needsFullTimeline,
|
||||
super.benchmarkScoreKeys,
|
||||
});
|
||||
|
||||
|
||||
PerfTestWithSkSL.e2e(
|
||||
String testDirectory,
|
||||
String testTarget, {
|
||||
String testDriver = 'test_driver/e2e_test.dart',
|
||||
String resultFilename = 'e2e_perf_summary',
|
||||
super.testDirectory,
|
||||
super.testTarget, {
|
||||
String super.testDriver,
|
||||
super.resultFilename,
|
||||
}) : super.e2e(
|
||||
testDirectory,
|
||||
testTarget,
|
||||
testDriver: testDriver,
|
||||
needsFullTimeline: false,
|
||||
resultFilename: resultFilename,
|
||||
);
|
||||
|
||||
@override
|
||||
|
||||
@@ -3,7 +3,7 @@ description: Flutter continuous integration performance and correctness tests.
|
||||
homepage: https://github.com/flutter/flutter
|
||||
|
||||
environment:
|
||||
sdk: ">=2.12.0-0 <3.0.0"
|
||||
sdk: ">=2.17.0-0 <3.0.0"
|
||||
|
||||
dependencies:
|
||||
archive: 3.1.11
|
||||
|
||||
@@ -180,7 +180,7 @@ class CommandArgs {
|
||||
}
|
||||
|
||||
class FakeDevice extends AndroidDevice {
|
||||
FakeDevice({required String deviceId}) : super(deviceId: deviceId);
|
||||
FakeDevice({required super.deviceId});
|
||||
|
||||
static String output = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user