From dba012d7dc2874a6cb9408665f052bfc6e9fdb9c Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Thu, 19 Jul 2018 11:00:44 +0900 Subject: [PATCH] Add HAL testcases for oal manager Change-Id: Icdc8ea3b9e27b3c7bd5dfee393dc0f6e7017a0d5 Signed-off-by: DoHyun Pyun --- bt-oal/haltest/bluetooth_hal_tc.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bt-oal/haltest/bluetooth_hal_tc.cpp b/bt-oal/haltest/bluetooth_hal_tc.cpp index 3d57953..001c555 100644 --- a/bt-oal/haltest/bluetooth_hal_tc.cpp +++ b/bt-oal/haltest/bluetooth_hal_tc.cpp @@ -25,6 +25,8 @@ #include #include +#include "oal-manager.h" + using ::testing::EmptyTestEventListener; using ::testing::InitGoogleTest; using ::testing::Test; @@ -34,6 +36,19 @@ using ::testing::TestInfo; using ::testing::TestPartResult; using ::testing::UnitTest; +static void __bt_oal_event_receiver(int event_type, gpointer event_data, gsize len) +{ + printf("event_type: [%d], data size: [%d]\n", event_type, len); +} + +TEST(BluetoothHAL_test, oal_bt_init_deinit_p) { + int ret = OAL_STATUS_SUCCESS; + ret = oal_bt_init(__bt_oal_event_receiver); + ASSERT_TRUE(ret != OAL_STATUS_PENDING); + + oal_bt_deinit(); +} + int main(int argc, char **argv) { InitGoogleTest(&argc, argv); -- 2.7.4