Skip to content

Commit 26a17a4

Browse files
authored
Upgrade leak_tracker. (flutter#130528)
1 parent 7abdb86 commit 26a17a4

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/flutter/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ dev_dependencies:
2222
flutter_goldens:
2323
sdk: flutter
2424
fake_async: 1.3.1
25-
leak_tracker: 7.0.8
26-
leak_tracker_testing: 1.0.0
25+
leak_tracker: 8.0.0
26+
leak_tracker_testing: 1.0.2
2727

2828
_fe_analyzer_shared: 62.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
2929
analyzer: 6.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
@@ -74,4 +74,4 @@ dev_dependencies:
7474
webkit_inspection_protocol: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
7575
yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
7676

77-
# PUBSPEC CHECKSUM: 5af4
77+
# PUBSPEC CHECKSUM: c3ef

packages/flutter/test/flutter_test_config.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Future<void> testExecutable(FutureOr<void> Function() testMain) {
2323
// receive the event.
2424
WidgetController.hitTestWarningShouldBeFatal = true;
2525

26-
LeakTrackingTestConfig.warnForNonSupportedPlatforms = false;
26+
LeakTrackerGlobalSettings.warnForNonSupportedPlatforms = false;
2727

2828
// Enable golden file testing using Skia Gold.
2929
return flutter_goldens.testExecutable(testMain);

packages/flutter/test/foundation/leak_tracking.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Future<void> _withFlutterLeakTracking(
9999
) async {
100100
// Leak tracker does not work for web platform.
101101
if (kIsWeb) {
102-
final bool shouldPrintWarning = !_webWarningPrinted && LeakTrackingTestConfig.warnForNonSupportedPlatforms;
102+
final bool shouldPrintWarning = !_webWarningPrinted && LeakTrackerGlobalSettings.warnForNonSupportedPlatforms;
103103
if (shouldPrintWarning) {
104104
_webWarningPrinted = true;
105105
debugPrint('Leak tracking is not supported on web platform.\nTo turn off this message, set `LeakTrackingTestConfig.warnForNonSupportedPlatforms` to false.');

0 commit comments

Comments
 (0)