diff options
author | Avichal Rakesh <arakesh@google.com> | 2022-05-23 20:44:02 +0000 |
---|---|---|
committer | Avichal Rakesh <arakesh@google.com> | 2022-05-24 21:06:41 +0000 |
commit | 4bf91c7e38f72a961785126519371e278e2f6345 (patch) | |
tree | 79ee63cc361356c2824668a3317aed3b37817c25 /security/keymint/aidl/vts/functional/KeyMintTest.cpp | |
parent | 412f907bd37e3c14e988d73a3fec203153e49512 (diff) |
Camera VTS: Fix incorrect return value check
The AIDL interface specificies that ICameraProvider::setCallback should
return Status::ILLEGAL_ARGUMENT if the provided callback is null. The
setCallback test incorrectly checked for the return value to be OK
instead.
This CL fixes the test to check for ILLEGAL_ARGUMENT and removes setting
callback to null from setTorchMode test. In addition it fixes
`setCallback` test to use Bn* variant of ICameraProviderCallback to
ensure that the object makes it through the binder.
Bug: 233221359
Test: atest VtsAidlHalCameraProvider_TargetTest
Change-Id: Ia33226b15efd9628bf8e1b53ec2a3012b08eaaac
Diffstat (limited to 'security/keymint/aidl/vts/functional/KeyMintTest.cpp')
0 files changed, 0 insertions, 0 deletions