Skip to content

binder: Make a client SecurityPolicy test simpler and more realistic#12825

Open
jdcormie wants to merge 3 commits into
grpc:masterfrom
jdcormie:uid-proxy
Open

binder: Make a client SecurityPolicy test simpler and more realistic#12825
jdcormie wants to merge 3 commits into
grpc:masterfrom
jdcormie:uid-proxy

Conversation

@jdcormie
Copy link
Copy Markdown
Member

No description provided.

jdcormie added 3 commits May 22, 2026 17:53
Makes it easier to add new arguments with defaults in the future.

TAG=agy
CONV=e849839d-3cdc-4bcc-863d-9c8b6d2f47f6
LeakSafeOneWayBinder.Decorator lets us intercept Binder transactions on
the receiving side for testing. Unlike the existing OneWayBinderProxy
Decorator (works on the sending side), this lets a test inject code on
the same thread that calls onTransact(). We'll use this in a follow up
commit to simulate the UID of the caller.

TAG=agy
CONV=e849839d-3cdc-4bcc-863d-9c8b6d2f47f6
Add UID faking decorators using the new test support plumbing. This
allow tests to configure fake UIDs for the client and server just once
during the "arrange" phase. Use this new test infra to simplify a
RobolectricBinderTransportTest auth test.

TAG=agy
CONV=e849839d-3cdc-4bcc-863d-9c8b6d2f47f6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant