Init licenses for test bindings (#81961)

This commit is contained in:
Jia Hao
2021-05-08 08:54:02 +08:00
committed by GitHub
parent 099f1162ac
commit b3f7ebe069
4 changed files with 65 additions and 7 deletions

View File

@@ -324,13 +324,6 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
}
}
@override
// ignore: MUST_CALL_SUPER
void initLicenses() {
// Do not include any licenses, because we're a test, and the LICENSE file
// doesn't get generated for tests.
}
@override
BinaryMessenger createBinaryMessenger() {
return TestDefaultBinaryMessenger(super.createBinaryMessenger());
@@ -927,6 +920,13 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
binding.mockFlutterAssets();
}
@override
// ignore: MUST_CALL_SUPER
void initLicenses() {
// Do not include any licenses, because we're a test, and the LICENSE file
// doesn't get generated for tests.
}
FakeAsync? _currentFakeAsync; // set in runTest; cleared in postTest
Completer<void>? _pendingAsyncTasks;