#define STORAGE_PATH_LEN_MAX 255
+#define BT_ADDRESS_STRING_SIZE 18 /**< This specifies bluetooth device address string length */
+#define BT_ADDRESS_LENGTH 6 /**< This specifies bluetooth device address length */
+
#define BT_OBEX_PATH_PREFIX "/opt/usr/media"
#define BT_OBEX_DEFAULT_PATH "/opt/usr/home/owner/media"
void _bt_remove_tmp_file(char *file_path);
void _bt_remove_vcf_file(char *file_path);
char *_bt_get_time_of_the_day(void);
+void _bt_get_default_storage(char *storage);
char *_bt_share_get_storage_path(int storage_type);
int _bt_share_get_active_uid(uid_t *uid);
+void _bt_convert_addr_type_to_string(char *address, char *addr);
+int _bt_get_available_int_memory(double *dAvail);
+gboolean _bt_get_available_ext_memory(unsigned long long *available_mem_size);
#ifdef __cplusplus
}
#include "bluetooth-api.h"
#include "bt-share-main.h"
+#include "bt-share-common.h"
#define BT_FILE_PATH_LEN_MAX (4096 + 10)
#define BT_TEMP_FILE_PATH_LEN_MAX 262
#define BT_TEXT_LEN_MAX 255
-#define BT_ADDRESS_STRING_SIZE 18 /**< This specifies bluetooth device address string length */
#define BLUETOOTH_DEVICE_NAME_LENGTH_MAX 248 /**< This specifies maximum device name length */
typedef enum {
void _bt_share_event_handler(int event, bluetooth_event_param_t *param,
void *user_data);
-void _bt_get_default_storage(char *storage);
-
void _bt_obex_cancel_transfer(void *data);
-void _bt_convert_addr_type_to_string(char *address,
- char *addr);
-
void _bt_obex_server_event_handler(int event,
bluetooth_event_param_t *param,
void *user_data);
return true;
}
+void _bt_get_default_storage(char *storage)
+{
+ int val = BT_DEFAULT_MEM_PHONE;
+ char *path = NULL;
+
+ if (vconf_get_int(VCONFKEY_SETAPPL_DEFAULT_MEM_BLUETOOTH_INT,
+ (void *)&val)) {
+ ERR("vconf error");
+ val = BT_DEFAULT_MEM_PHONE;
+ }
+
+ path = _bt_share_get_storage_path(val);
+
+ if (path == NULL)
+ path = g_strdup(BT_DOWNLOAD_DEFAULT_MEDIA_FOLDER);
+
+ g_strlcpy(storage, path, STORAGE_PATH_LEN_MAX);
+ g_free(path);
+
+ DBG("Default storage : %s\n", storage);
+
+ if (access(storage, W_OK) != 0)
+ DBG("Can't access the storage");
+}
+
char *_bt_share_get_storage_path(int storage_type)
{
int ret = 0;
return BT_SHARE_ERROR_NONE;
}
+void _bt_convert_addr_type_to_string(char *address,
+ char *addr)
+{
+ ret_if(address == NULL || addr == NULL);
+
+ g_snprintf(address, BT_ADDRESS_STRING_SIZE,
+ "%2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X",
+ addr[0], addr[1], addr[2],
+ addr[3], addr[4], addr[5]);
+}
+
+int _bt_get_available_int_memory(double *dAvail)
+{
+ struct statvfs s = { 0, };
+ int r = 0;
+
+ r = storage_get_internal_memory_size(&s);
+ if (r < 0)
+ ERR("ret : %d", r);
+ else {
+ INFO("total : %lf, avail : %lf",
+ (double)s.f_frsize*s.f_blocks, (double)s.f_bsize*s.f_bavail);
+ *dAvail = (double)s.f_bsize*s.f_bavail;
+ }
+
+ return r;
+}
+
+gboolean _bt_get_available_ext_memory(unsigned long long *available_mem_size)
+{
+ struct statvfs s = {0, };
+ int r;
+
+ r = storage_get_internal_memory_size(&s);
+ if (r < 0) {
+ ERR("ret : %d", r);
+ *available_mem_size = 0;
+ return FALSE;
+ } else {
+ INFO("total : %lf, avail : %lf",
+ (double)s.f_frsize*s.f_blocks, (double)s.f_bsize*s.f_bavail);
+ *available_mem_size = (unsigned long long)s.f_bsize*s.f_bavail;
+ }
+
+ return TRUE;
+}
+
FN_END;
}
+/* LCOV_EXCL_START */
static void __bt_release_service(bt_appdata_t *ad)
{
ret_if(ad == NULL);
DBG("Terminating bluetooth-share daemon");
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __bt_sigterm_handler(int signo)
{
FN_START;
FN_END;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __bt_update_transfer_status_values(void)
{
bt_appdata_t *ad = app_state;
DBG("[Receive] success %d, fail %d", ad->recv_data.tr_success,
ad->recv_data.tr_fail);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static GSList *__merge_sorted(GSList *inbound, GSList *outbound)
{
GSList *slist = NULL;
return slist;
}
+/* LCOV_EXCL_STOP */
void _bt_remove_temporary_files_by_noti_id(sqlite3 *db, int noti_id)
{
GSList *current_file = file_list;
while (current_file) {
+ /* LCOV_EXCL_START */
DBG("Removing [%s]", (char *)(current_file->data));
ecore_file_remove((char *)(current_file->data));
current_file = g_slist_next(current_file);
+ /* LCOV_EXCL_STOP */
}
bt_share_release_temporary_file_list(file_list);
FN_END;
}
+/* LCOV_EXCL_START */
gboolean __bt_clean_database(gpointer user_data)
{
bt_appdata_t *ad = app_state;
FN_END
return G_SOURCE_REMOVE;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static gboolean __bt_dbus_request_name(void)
{
owner_id = g_bus_own_name(G_BUS_TYPE_SYSTEM, BLUETOOTH_SHARE_BUS,
return (owner_id != 0) ? TRUE : FALSE;
}
+/* LCOV_EXCL_STOP */
int _bt_init_obex_server(void)
{
retvm_if(bluetooth_obex_server_init(storage) != BLUETOOTH_ERROR_NONE,
BT_SHARE_FAIL, "Fail to init obex server");
+ /* LCOV_EXCL_START */
bluetooth_obex_server_set_root(BT_FTP_FOLDER);
return BT_SHARE_ERROR_NONE;
+ /* LCOV_EXCL_STOP */
}
/* LCOV_EXCL_START */
#include "bt-share-notification.h"
#include "obex-event-handler.h"
+/* LCOV_EXCL_START */
static void __bt_default_memory_changed_cb(keynode_t *node, void *data)
{
FN_START;
FN_END;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __bt_mmc_status_changed_cb(keynode_t *node, void *data)
{
FN_START;
FN_END;
}
+/* LCOV_EXCL_STOP */
void _bt_init_vconf_notification(void *data)
{
FN_START;
int ret = BT_SHARE_ERROR_NONE;
bundle *b = NULL;
- bt_appdata_t *ad = app_state;
+ bt_appdata_t *ad = NULL;
char event_str[BT_SYSPOPUP_EVENT_LEN_MAX] = {0, };
+ if (data)
+ ad = (bt_appdata_t *)data;
+ else
+ ad = app_state;
+
+ retv_if(!ad, BT_SHARE_FAIL);
+
b = bundle_create();
retvm_if(!b, BT_SHARE_FAIL, "bundle_create failed");
static void __bt_obex_file_push_auth(bt_obex_server_authorize_into_t *server_auth_info);
-void _bt_convert_addr_type_to_string(char *address,
- char *addr)
-{
- ret_if(address == NULL || addr == NULL);
-
- g_snprintf(address, BT_ADDRESS_STRING_SIZE,
- "%2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X",
- addr[0], addr[1], addr[2],
- addr[3], addr[4], addr[5]);
-}
-
+/* LCOV_EXCL_START */
static void __bt_free_rcv_notification(gpointer data)
{
bt_device_rcv_noti_info_t *noti_data = data;
g_free(noti_data->db_sid);
g_free(noti_data);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __bt_free_snd_notification(gpointer data)
{
bt_device_snd_noti_info_t *noti_data = data;
g_free(noti_data->db_sid);
g_free(noti_data);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void _bt_get_pending_list(bt_appdata_t *ad)
{
sqlite3 *db = NULL;
if (ad->tr_send_list)
ad->tr_next_data = ad->tr_send_list;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static bt_device_snd_noti_info_t *__bt_get_snd_noti_data_by_device_address(char *address)
{
GSList *l = NULL;
return NULL;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static bt_device_rcv_noti_info_t *__bt_get_rcv_noti_data_by_device_address(char *address)
{
GSList *l = NULL;
return NULL;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static bt_noti_data_t *__bt_get_noti_data_by_transfer_id(int transfer_id)
{
GSList *l = NULL;
return NULL;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static char *__get_file_name(int cnt, char **path)
{
retvm_if(path == NULL || path[cnt] == NULL, NULL, "Path is invalid");
DBG_SECURE("File name[%d] : %s", cnt, pfilename);
return pfilename;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __delete_notification(gpointer data, gpointer user_data)
{
bt_noti_data_t *noti_data = data;
_bt_delete_notification(noti_data->noti_handle);
g_free(noti_data);
}
+/* LCOV_EXCL_STOP */
void _bt_obex_cancel_transfer(void *data)
{
int ret = 0;
for (l = bt_receive_noti_list; l != NULL; l = l->next) {
+ /* LCOV_EXCL_START */
noti_data = l->data;
if (noti_data == NULL)
continue;
ret = bluetooth_obex_server_cancel_transfer(noti_data->transfer_id);
warn_if(ret != BLUETOOTH_ERROR_NONE,
"bluetooth_obex_server_cancel_transfer[ret:%d]", ret);
+ /* LCOV_EXCL_STOP */
}
FN_END;
}
void _bt_clear_receive_noti_list(void)
{
if (bt_receive_noti_list) {
+ /* LCOV_EXCL_START */
g_slist_foreach(bt_receive_noti_list,
(GFunc)__delete_notification,
NULL);
g_slist_free(bt_receive_noti_list);
bt_receive_noti_list = NULL;
+ /* LCOV_EXCL_STOP */
}
}
+/* LCOV_EXCL_START */
char *__get_dest_file_path(const char *path)
{
char file_path[BT_TEMP_FILE_PATH_LEN_MAX] = {0, };
DBG_SECURE("File path %s", file_path);
return g_strdup(file_path);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __free_file_info(bt_file_info_t *info)
{
g_free(info->file_path);
g_free(info);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static bt_file_type_e __get_file_type(char *extn)
{
DBG("extn : %s", extn);
}
return BT_FILE_OTHER;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static gboolean __bt_scan_media_file(char *file_path)
{
int ret = 0;
return TRUE;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
void __bt_update_db_with_noti_id(bt_tr_db_table_e table, notification_h noti,
const char *db_sid)
{
bt_share_close_db(db);
}
+/* LCOV_EXCL_STOP */
#ifdef ENABLE_CONTACTS_SERVICE2
+/* LCOV_EXCL_START */
void _bt_util_get_number(char *source, char *dest)
{
int len = 7;
DBG("-");
}
+/* LCOV_EXCL_STOP */
#endif
+/* LCOV_EXCL_START */
void _bt_share_event_handler(int event, bluetooth_event_param_t *param,
void *user_data)
{
}
}
+/* LCOV_EXCL_STOP */
-void _bt_get_default_storage(char *storage)
-{
- int val = BT_DEFAULT_MEM_PHONE;
- char *path = NULL;
-
- if (vconf_get_int(VCONFKEY_SETAPPL_DEFAULT_MEM_BLUETOOTH_INT,
- (void *)&val)) {
- ERR("vconf error");
- val = BT_DEFAULT_MEM_PHONE;
- }
-
- path = _bt_share_get_storage_path(val);
-
- if (path == NULL)
- path = g_strdup(BT_DOWNLOAD_DEFAULT_MEDIA_FOLDER);
-
- g_strlcpy(storage, path, STORAGE_PATH_LEN_MAX);
- g_free(path);
-
- DBG("Default storage : %s\n", storage);
-
- if (access(storage, W_OK) != 0)
- DBG("Can't access the storage");
-}
-
-static int __bt_get_available_int_memory(double *dAvail)
-{
- struct statvfs s = { 0, };
- int r = 0;
-
- r = storage_get_internal_memory_size(&s);
- if (r < 0)
- ERR("ret : %d", r);
- else {
- INFO("total : %lf, avail : %lf",
- (double)s.f_frsize*s.f_blocks, (double)s.f_bsize*s.f_bavail);
- *dAvail = (double)s.f_bsize*s.f_bavail;
- }
-
- return r;
-}
-
-
-static gboolean __bt_get_available_ext_memory(unsigned long long *available_mem_size)
-{
- struct statvfs s = {0, };
- int r;
-
- r = storage_get_internal_memory_size(&s);
- if (r < 0) {
- ERR("ret : %d", r);
- *available_mem_size = 0;
- return FALSE;
- } else {
- INFO("total : %lf, avail : %lf",
- (double)s.f_frsize*s.f_blocks, (double)s.f_bsize*s.f_bavail);
- *available_mem_size = (unsigned long long)s.f_bsize*s.f_bavail;
- }
-
- return TRUE;
-}
-
+/* LCOV_EXCL_START */
static gchar *__bt_get_unique_file_name(char *storage_path, char *filename)
{
char temp_filepath[BT_FILE_PATH_LEN_MAX] = { 0, };
return g_strdup(temp_filename);
}
+/* LCOV_EXCL_STOP */
-
+/* LCOV_EXCL_START */
static void __bt_app_obex_openwrite_requested(bt_obex_server_authorize_into_t
*server_auth_info)
{
bluetooth_obex_server_accept_authorize(server_auth_info->filename);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void __bt_obex_file_push_auth(bt_obex_server_authorize_into_t
*server_auth_info)
{
INFO("File Length =%ld", server_auth_info->length);
if (val == BT_DEFAULT_MEM_MMC) {
- ret = __bt_get_available_ext_memory(&available_ext_mem_size);
+ ret = _bt_get_available_ext_memory(&available_ext_mem_size);
if (ret == FALSE) {
ERR("Unable to get available memory size");
goto reject;
goto reject;
}
} else {
- if (__bt_get_available_int_memory(&available_int_mem_size) < 0) {
+ if (_bt_get_available_int_memory(&available_int_mem_size) < 0) {
ERR("Unable to get available memory size");
goto reject;
}
FN_END;
}
+/* LCOV_EXCL_STOP */
#ifdef ENABLE_CONTACTS_SERVICE2
+/* LCOV_EXCL_START */
static bool __bt_vcard_handler(contacts_record_h record, void *user_data)
{
int ret = 0;
return true;
}
+/* LCOV_EXCL_STOP */
#endif /* ENABLE_CONTACTS_SERVICE2 */
#ifdef ENABLE_CALENDAR_SERVICE2
+/* LCOV_EXCL_START */
static bool __bt_vcalendar_handler(calendar_record_h record, void *user_data)
{
int ret = 0;
"calendar_db_insert_record error : %d", ret);
return true;
+ /* LCOV_EXCL_STOP */
}
#endif /* ENABLE_CALENDAR_SERVICE2 */
+/* LCOV_EXCL_START */
static gboolean __bt_save_v_object(char *file_path,
bt_file_type_e file_type)
{
return TRUE;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void *__bt_obex_writeclose(bt_file_info_t *info)
{
if (__bt_save_v_object(info->file_path, info->file_type) == FALSE) {
return NULL;
}
+/* LCOV_EXCL_STOP */
#include <gtest/gtest.h>
#include <unistd.h>
#include <glib.h>
+#include <syspopup_caller.h>
#include "bluetooth-share-api.h"
#include "bt-share-common.h"
#include "bt-share-ipc.h"
#include "bt-share-resource.h"
#include "bt-share-main.h"
+#include "bt-share-noti-handler.h"
+#include "bt-share-notification.h"
+#include "bt-share-syspopup.h"
+#include "obex-event-handler.h"
using ::testing::EmptyTestEventListener;
using ::testing::InitGoogleTest;
_bt_terminate_bluetooth_share();
}
+
+TEST(BluetoothShare_test, _bt_remove_temporary_files_by_noti_id_p) {
+ sqlite3 *db = NULL;
+
+ db = bt_share_open_db();
+
+ _bt_remove_temporary_files_by_noti_id(db, 1);
+
+ bt_share_close_db(db);
+}
+
+TEST(BluetoothShare_test, _bt_init_obex_server_p) {
+ int ret = BT_SHARE_ERROR_NONE;
+
+ ret = _bt_init_obex_server();
+
+ /* bluetooth-share process already allocate the obex serivce, so will return the error */
+ /* ASSERT_TRUE(ret == BT_SHARE_ERROR_NONE); */
+}
+
+TEST(BluetoothShare_test, _bt_init_vconf_notification_p) {
+ _bt_init_vconf_notification(NULL);
+
+ _bt_deinit_vconf_notification();
+}
+
+TEST(BluetoothShare_test, _bt_insert_instant_notification_p) {
+ _bt_insert_instant_notification(BT_SENT_NOTI);
+
+ _bt_insert_instant_notification(BT_SENT_FAILED_NOTI);
+
+ _bt_insert_instant_notification(BT_SENDING_NOTI);
+
+ _bt_insert_instant_notification(BT_RECEIVED_NOTI);
+
+ _bt_insert_instant_notification(BT_RECEIVED_FAILED_NOTI);
+
+ _bt_insert_instant_notification(BT_RECEIVING_NOTI);
+}
+
+TEST(BluetoothShare_test, _bt_notification_test_p) {
+ bt_appdata_t *ad = NULL;
+
+ notification_h noti = NULL;
+
+ ad = (bt_appdata_t *)calloc(1, sizeof(bt_appdata_t));
+
+
+ noti = _bt_insert_notification(ad,
+ BT_SENDING_NOTI, "TEST",
+ "test address", "1");
+
+ if (noti == NULL)
+ g_free(ad);
+
+ ASSERT_FALSE(noti == NULL);
+
+ ad->send_noti = noti;
+ ad->opc_noti_id = _bt_get_notification_priv_id(noti);
+
+ _bt_set_notification_app_launch(noti, "TEST", "test address", "1",
+ CREATE_TR_LIST, NOTI_TR_TYPE_OUT, NULL, 0, NULL, 0);
+
+ _bt_update_notification(ad, ad->send_noti,
+ NULL, NULL, NULL, NULL, NULL);
+
+ _bt_delete_notification(noti);
+ ad->send_noti = NULL;
+
+ noti = _bt_insert_notification(ad,
+ BT_RECEIVED_NOTI, "TEST",
+ "test address", "1");
+
+ if (noti == NULL)
+ g_free(ad);
+
+ ASSERT_FALSE(noti == NULL);
+
+ ad->receive_noti = noti;
+
+ _bt_update_notification(ad, ad->receive_noti,
+ NULL, NULL, NULL, NULL, NULL);
+
+ _bt_delete_notification(noti);
+ ad->receive_noti = NULL;
+
+ noti = _bt_insert_notification(ad,
+ BT_SENDING_NOTI, "TEST",
+ "test address", "1");
+
+ if (noti == NULL)
+ g_free(ad);
+
+ ASSERT_FALSE(noti == NULL);
+
+ ad->opc_noti_id = _bt_get_notification_priv_id(noti);
+
+ _bt_set_notification_app_launch(noti, "TEST", "test address",
+ "1", CREATE_PROGRESS, NOTI_TR_TYPE_OUT,
+ "TEST", 0, NULL, 1);
+
+ _bt_update_notification_progress(noti, ad->opc_noti_id, 100);
+
+ _bt_delete_notification(noti);
+
+ noti = _bt_insert_notification(ad,
+ BT_RECEIVING_NOTI, "TEST",
+ "test address", "1");
+
+ if (noti == NULL)
+ g_free(ad);
+
+ ASSERT_FALSE(noti == NULL);
+
+ _bt_delete_notification(noti);
+}
+
+
+TEST(BluetoothShare_test, _bt_register_notification_cb_p) {
+ _bt_register_notification_cb(NULL);
+
+ _bt_unregister_notification_cb(NULL);
+}
+
+TEST(BluetoothShare_test, _bt_launch_system_popup_p) {
+ bt_app_sys_popup_params_t popup_params = { NULL };
+ int ret = BT_SHARE_ERROR_NONE;
+ bt_appdata_t *ad = NULL;
+
+ ad = (bt_appdata_t *)calloc(1, sizeof(bt_appdata_t));
+
+ popup_params.title = BT_STR_MEMORY_FULL;
+ popup_params.type = "none";
+
+ ret = _bt_launch_system_popup(BT_APP_EVENT_CONFIRM_MODE_REQUEST,
+ &popup_params, NULL, ad);
+
+ if (ret != BT_SHARE_ERROR_NONE)
+ g_free(ad);
+
+ ASSERT_TRUE(ret == BT_SHARE_ERROR_NONE);
+
+ syspopup_destroy_all();
+ usleep(1000 * 200);
+
+ ret = _bt_launch_system_popup(BT_APP_EVENT_FILE_RECEIVED,
+ &popup_params, NULL, ad);
+
+ syspopup_destroy_all();
+ usleep(1000 * 200);
+
+ if (ret != BT_SHARE_ERROR_NONE)
+ g_free(ad);
+
+ ASSERT_TRUE(ret == BT_SHARE_ERROR_NONE);
+
+ ret = _bt_launch_system_popup(BT_APP_EVENT_INFORMATION,
+ &popup_params, NULL, ad);
+
+ if (ret != BT_SHARE_ERROR_NONE)
+ g_free(ad);
+
+ ASSERT_TRUE(ret == BT_SHARE_ERROR_NONE);
+
+ syspopup_destroy_all();
+ usleep(1000 * 200);
+
+ ret = _bt_launch_system_popup(BT_APP_EVENT_OVERWRITE_REQUEST,
+ &popup_params, NULL, ad);
+
+ if (ret != BT_SHARE_ERROR_NONE)
+ g_free(ad);
+
+ ASSERT_TRUE(ret == BT_SHARE_ERROR_NONE);
+
+ syspopup_destroy_all();
+ usleep(1000 * 200);
+}
+
+TEST(BluetoothShare_test, _bt_app_popup_memoryfull_p) {
+ _bt_app_popup_memoryfull(NULL);
+}
+
+TEST(BluetoothShare_test, _bt_convert_addr_type_to_string_p) {
+ char bd_addr[BT_ADDRESS_STRING_SIZE] = {0, };
+ char addr[BT_ADDRESS_LENGTH] = {0, };
+
+ addr[0] = '1';
+ addr[1] = '1';
+ addr[2] = '1';
+ addr[3] = '1';
+ addr[4] = '1';
+ addr[5] = '1';
+
+ _bt_convert_addr_type_to_string(bd_addr, addr);
+}
+
+TEST(BluetoothShare_test, _bt_obex_cancel_transfer_p) {
+ bt_appdata_t *ad = NULL;
+
+ ad = (bt_appdata_t *)calloc(1, sizeof(bt_appdata_t));
+
+ _bt_obex_cancel_transfer((void *)ad);
+
+ g_free(ad);
+}
+
+TEST(BluetoothShare_test, _bt_clear_receive_noti_list_p) {
+ _bt_clear_receive_noti_list();
+}
+
+TEST(BluetoothShare_test, _bt_get_default_storage_p) {
+ char storage[STORAGE_PATH_LEN_MAX] = {0, };
+
+ _bt_get_default_storage(storage);
+}
+
+TEST(BluetoothShare_test, _bt_get_available_int_memory_p) {
+ int ret = 0;
+ double available_int_mem_size = 0;
+
+ ret = _bt_get_available_int_memory(&available_int_mem_size);
+
+ ASSERT_TRUE(ret >= 0);
+}
+
+TEST(BluetoothShare_test, _bt_get_available_ext_memory_p) {
+ int ret = 0;
+ unsigned long long available_ext_mem_size = 0;
+
+ ret = _bt_get_available_ext_memory(&available_ext_mem_size);
+
+ ASSERT_TRUE(ret >= 0);
+}
+
int main(int argc, char **argv) {
InitGoogleTest(&argc, argv);