This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
packages/video_player/video_player_platform_interface Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,4 +127,4 @@ enum VideoEvent {
127127 bufferingStart,
128128 bufferingEnd,
129129 unknown,
130- }
130+ }
Original file line number Diff line number Diff line change @@ -216,12 +216,20 @@ void main() {
216216 });
217217
218218 test ('videoEventsFor' , () async {
219+ // TODO(cbenhagen): This has been deprecated and should be replaced
220+ // with `ServicesBinding.instance.defaultBinaryMessenger` when it's
221+ // available on all the versions of Flutter that we test.
222+ // ignore: deprecated_member_use
219223 defaultBinaryMessenger.setMockMessageHandler (
220224 "flutter.io/videoPlayer/videoEvents123" ,
221225 (ByteData message) async {
222226 final MethodCall methodCall =
223227 const StandardMethodCodec ().decodeMethodCall (message);
224228 if (methodCall.method == 'listen' ) {
229+ // TODO(cbenhagen): This has been deprecated and should be replaced
230+ // with `ServicesBinding.instance.defaultBinaryMessenger` when it's
231+ // available on all the versions of Flutter that we test.
232+ // ignore: deprecated_member_use
225233 defaultBinaryMessenger.handlePlatformMessage (
226234 "flutter.io/videoPlayer/videoEvents123" ,
227235 const StandardMethodCodec ().encodeSuccessEnvelope (
You can’t perform that action at this time.
0 commit comments