Migrate to ChannelBuffers.push (#76288)

* Migrate to ChannelBuffers.push

* Move TestDefaultBinaryMessenger to its own file

* Apply deprecations and fix usages
This commit is contained in:
Ian Hickson
2021-04-23 15:39:34 -07:00
committed by GitHub
parent 39554279b0
commit c26ed03c8a
74 changed files with 889 additions and 596 deletions

View File

@@ -71,12 +71,5 @@ void main() {
ServicesBinding.instance!.defaultBinaryMessenger
.setMessageHandler('test_send', null);
});
test('throws when trying to set a mock handler', () {
expect(
() => pluginBinaryMessenger.setMockMessageHandler(
'test', (ByteData? data) async => ByteData(0)),
throwsFlutterError);
});
});
}