-
Notifications
You must be signed in to change notification settings - Fork 6k
fuchsia: Improve FakeSession & add tests #28139
Conversation
jaeheon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@jaeheon It seem you are not a collaborator on the Flutter GitHub organization. Can you follow the steps in go/flutter-onboarding to become one please? Happy to provide the endorsement. |
chinmaygarde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just adding an approval till @jaeheon gets access.
|
Thank you Chinmay. I accepted hixie's invite. |
| fidl::InterfaceHandle<fuchsia::sysmem::BufferCollectionToken> token) { | ||
| NotImplemented_("RegisterBufferCollection"); // TODO | ||
| zx_koid_t token_koid = GetKoid(token.channel().get()); | ||
| auto [_, buffer_success] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! I didn't know that c++ can unpack values like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only since C++17: https://en.cppreference.com/w/cpp/language/structured_binding
|
Please address comments and merge at your discretion. |
Add support for resources to FakeSession, and add tests to verify its behavior. This is a precursor to a patch adding unit tests for FuchsiaExternalViewEmbedder and PlatformView
Test: Added fake_session_unittests
Fixes: https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=79873