tests: unittest: Add new test for hal_common_get_backend and put_backend function 67/276567/4
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 16 Jun 2022 03:48:35 +0000 (12:48 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 22 Jun 2022 03:14:55 +0000 (12:14 +0900)
commit471e3222a40b1ac50d495f45e872049cb3eef52a
treec1a841f9a154df873419b5032d36620f70250e0b
parent4b40ecdcf3fd62969d9ac42d2bd09224979fe61a
tests: unittest: Add new test for hal_common_get_backend and put_backend function

hal_common_get_backend and hal_common_put_backend functions are very
important because they are in charge of loading/unloading the hal
backend library for all hal backends and also verify the validation checking
of the loaded hal backend library. When executing hal_common_get_backend and
hal_common_put_backend, there are very complex validation sequence.

It means that have to verify the internal logic of both
hal_common_get_backend and hal_common_put_backend at the implementation
step in order to catch the error.

So that add new test for hal_common_get_backend and
hal_common_put_backend functions.

Change-Id: I8d42e9327248c283d8f01fc8b5f5926e0d371ba5
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
tests/unittest/test-hal-api-common.cc