Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "[flutter_test] Adds method to mock EventChannels" #124401

Merged
merged 1 commit into from Apr 7, 2023

Conversation

zanderso
Copy link
Member

@zanderso zanderso commented Apr 7, 2023

@flutter-dashboard flutter-dashboard bot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. labels Apr 7, 2023
@zanderso
Copy link
Member Author

zanderso commented Apr 7, 2023

cc @Rexios80

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@goderbauer
Copy link
Member

goderbauer commented Apr 7, 2023

@Rexios80 Looks like your branch may have been outdated and didn't have these deprecations yet.

   info • 'handlePlatformMessage' is deprecated and shouldn't be used. Instead of calling this method, use ServicesBinding.instance.channelBuffers.push. In tests, consider using tester.binding.defaultBinaryMessenger.handlePlatformMessage or TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.handlePlatformMessage. This feature was deprecated after v3.9.0-19.0.pre • packages/flutter_test/lib/src/test_default_binary_messenger.dart:365:46 • deprecated_member_use
   info • 'handlePlatformMessage' is deprecated and shouldn't be used. Instead of calling this method, use ServicesBinding.instance.channelBuffers.push. In tests, consider using tester.binding.defaultBinaryMessenger.handlePlatformMessage or TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.handlePlatformMessage. This feature was deprecated after v3.9.0-19.0.pre • packages/flutter_test/lib/src/test_default_binary_messenger.dart:376:31 • deprecated_member_use
   info • 'handlePlatformMessage' is deprecated and shouldn't be used. Instead of calling this method, use ServicesBinding.instance.channelBuffers.push. In tests, consider using tester.binding.defaultBinaryMessenger.handlePlatformMessage or TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.handlePlatformMessage. This feature was deprecated after v3.9.0-19.0.pre • packages/flutter_test/lib/src/test_default_binary_messenger.dart:386:46 • deprecated_member_use

@Rexios80
Copy link
Contributor

Rexios80 commented Apr 7, 2023

I thought I avoided the deprecated methods. How do we continue? Do I need to make a new PR?

@pdblasi-google
Copy link
Contributor

@Rexios80

It was likely an indirect conflict with a different recent merge that only became apparent after merging. You'll have to make a new PR that avoids the method mentioned in the analyzer.

Relands typically move a lot faster though as the main code usually doesn't need to change much to resolve the issue.

@zanderso zanderso merged commit 2f4a6af into master Apr 7, 2023
64 of 72 checks passed
@zanderso zanderso deleted the revert-123726-mock-event-channel branch April 7, 2023 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants