-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[macOS] Clean up allocations in menu plugin test
Runs all FlutterMenuPlugin tests in an AutoReleasepoolTest, which ensures all allocations are cleaned up. Also extracts out some hackery into the FlutterMenuPluginTest fixture to ensure that NSApplication instantiates everything necessary to do menu bar manipulation. Also replaces the use of OCMock in FlutterMenuPluginTest.mm with a fake FakePluginRegistrar class. This avoids unnecessary use of OCMock in the tests, which has been responsible for flakiness in some tests, in particular where the mock is used across threads. This test was not problematic, but the fake makes the tests more readable. Issue: flutter/flutter#104789 Issue: flutter/flutter#127441 Issue: flutter/flutter#124840
- Loading branch information
Showing
1 changed file
with
69 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters