summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor.cpp
diff options
context:
space:
mode:
authorChangyeon Jo <changyeon@google.com>2020-03-05 17:15:28 -0800
committerChangyeon Jo <changyeon@google.com>2020-03-05 17:52:16 -0800
commitfae91b1bb93226cf131a680b08fc7ccfc584c1b2 (patch)
tree53b25059b18b1560e815259c1d058c93150be529 /identity/support/src/cppbor.cpp
parente6477dc808ab7b2d734ee95a20c77d65721caa7b (diff)
Fix a resource clean-up routine
When a test case is being terminated, VTS framework calls TearDown() to clean up all resources. VtsHalEvsV1_1TargetTest stores weak references to opened hardware cameras for this and tries to close them explicitly when it can promote them. However, it was observed that VirtualCamera's destructor is not called yet even it fails to promote. Therefore, this change modifies a container to hold a strong pointer and explictly removes it after a test case calls closeCamera(). Also, this change corrects a bug in checking setExtendedInfo_1_1() results. Bug: 150893461 Test: vts-trafed VtsHalEvsV1_1_TargetTest Change-Id: I23b55b2f2282834fb5a9d364f4eb176060027de1
Diffstat (limited to 'identity/support/src/cppbor.cpp')
0 files changed, 0 insertions, 0 deletions