Revert "Migrate to ChannelBuffers.push (#81235)" (#81829)

This reverts commit 35ad43f20c.
This commit is contained in:
Ren You
2021-05-04 06:17:19 -07:00
committed by GitHub
parent 51ca131e39
commit 7f1d1414cc
77 changed files with 740 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);
});
});
}