commit | 138ddb63f9c6a76cd6b192092b10deda0aba6381 | [log] [tgz] |
---|---|---|
author | Atneya Nair <atneya@google.com> | Wed Jun 05 20:20:54 2024 -0700 |
committer | Atneya Nair <atneya@google.com> | Fri Jun 07 13:43:47 2024 -0700 |
tree | 652fd2b215f6ca8f271fc9b7829e572b4a16d39b | |
parent | 76c2722252b3325984dae79d1c49b4f225e08784 [diff] |
Add BinderResult and expected<> gtest matchers Add BinderResult which is short-hand for a Result with error-type binder::Status, which is preferred type for implementing binder interfaces. Add gmock matchers which unwrap expected types in either the expected or error directions for ease of testing. Test: atest NativePermissionControllerTest with subsequent CL Flag: EXEMPT: adding code without use Bug: 338089555 Change-Id: I00f4f71e7d10cadfe6a0b2a628b887df9931e447