diff options
author | Yin-Chia Yeh <yinchiayeh@google.com> | 2017-07-11 13:44:35 -0700 |
---|---|---|
committer | Yin-Chia Yeh <yinchiayeh@google.com> | 2017-07-11 23:46:16 +0000 |
commit | 719d3fceb3908de3e20a12e2afc2fff8c192805e (patch) | |
tree | 78bee5a6f564df7309928cf253d230d5c395c9a2 | |
parent | e6522390bbde72eed602fa83250fa4f285552e10 (diff) | |
download | platform_hardware_interfaces-719d3fceb3908de3e20a12e2afc2fff8c192805e.tar.gz platform_hardware_interfaces-719d3fceb3908de3e20a12e2afc2fff8c192805e.tar.bz2 platform_hardware_interfaces-719d3fceb3908de3e20a12e2afc2fff8c192805e.zip |
Camera: reset callback after test done
Test: VTS test pass
Bug: 63570734
Change-Id: Ia7b1e8e9baae2885d9c43821fe2933df883f7892
Merged-In: Ia7b1e8e9baae2885d9c43821fe2933df883f7892
-rw-r--r-- | camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp index 55f55f66ee..df85572d71 100644 --- a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp +++ b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp @@ -1110,6 +1110,10 @@ TEST_F(CameraHidlTest, setCallback) { auto status = provider.second->setCallback(cb); ASSERT_TRUE(status.isOk()); ASSERT_EQ(Status::OK, status); + // Reset callback since cb will go out of scope + status = provider.second->setCallback(nullptr); + ASSERT_TRUE(status.isOk()); + ASSERT_EQ(Status::OK, status); } } |