Revert "Migrate to ChannelBuffers.push (#82057)" (#82525)

This commit is contained in:
Ian Hickson
2021-05-14 12:09:03 -07:00
committed by GitHub
parent 965671b8c8
commit 2ae1e39810
77 changed files with 736 additions and 1116 deletions

View File

@@ -71,5 +71,12 @@ 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);
});
});
}