binder: Make a client SecurityPolicy test simpler and more realistic#12825
Open
jdcormie wants to merge 3 commits into
Open
binder: Make a client SecurityPolicy test simpler and more realistic#12825jdcormie wants to merge 3 commits into
jdcormie wants to merge 3 commits into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.