Migrate dev/benchmarks/macrobenchmarks to null safety. (#85501)
This commit is contained in:
@@ -74,7 +74,7 @@ void main() {
|
||||
frameCount = 0;
|
||||
delays = await tester.handlePointerEventRecord(records);
|
||||
await tester.pumpAndSettle();
|
||||
binding.reportData['fullyLive'] = _summarizeResult(frameCount, delays);
|
||||
binding.reportData!['fullyLive'] = _summarizeResult(frameCount, delays);
|
||||
await tester.idle();
|
||||
},
|
||||
);
|
||||
|
||||
@@ -13,10 +13,10 @@ typedef ControlCallback = Future<void> Function(WidgetController controller);
|
||||
void macroPerfTestE2E(
|
||||
String testName,
|
||||
String routeName, {
|
||||
Duration pageDelay,
|
||||
Duration? pageDelay,
|
||||
Duration duration = const Duration(seconds: 3),
|
||||
ControlCallback body,
|
||||
ControlCallback setup,
|
||||
ControlCallback? body,
|
||||
ControlCallback? setup,
|
||||
}) {
|
||||
final WidgetsBinding _binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
assert(_binding is IntegrationTestWidgetsFlutterBinding);
|
||||
|
||||
Reference in New Issue
Block a user