[C-API/Test] Apply test fixture to remove duplicate code
authorSangjung Woo <sangjung.woo@samsung.com>
Mon, 4 Apr 2022 12:42:12 +0000 (21:42 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Mon, 11 Apr 2022 06:13:36 +0000 (15:13 +0900)
commitb274df7dd9400d7704ba4c06562600f72195e71d
tree821b6620c71a233463c24aa6b62f874ff460f7ee
parentea69a19480d8c7a7cbec3f4dfba69e9dda68e387
[C-API/Test] Apply test fixture to remove duplicate code

To remove duplicate code in each test case, this patch applies the
test fixture framework. g_autofree macro is used for allocated space
to be freed automatically no matter test case is passed or not.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
tests/capi/unittest_capi_service.cc