summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTaejin Woo <tt.woo@samsung.com>2016-08-10 17:25:04 +0900
committerTaejin Woo <tt.woo@samsung.com>2016-08-11 16:38:38 +0900
commitea12cae1dc66eee3d39a4639df6cfa2ed48ec039 (patch)
tree992cda20d2709e2a131020433ace51ac4c048b8a /test
parentb499a219d62654341977fc05054cf39a180a06af (diff)
downloadbluetooth-accepted/tizen/mobile/20160812.065415.tar.gz
bluetooth-accepted/tizen/mobile/20160812.065415.tar.bz2
bluetooth-accepted/tizen/mobile/20160812.065415.zip
When connected between two device, they already know Interface info Change-Id: Ie3ad742af386e7067a8187ad2644761ad852b59a Signed-off-by: Taejin Woo <tt.woo@samsung.com>
Diffstat (limited to 'test')
-rw-r--r--test/bt_unit_test.c23
-rw-r--r--test/bt_unit_test.h1
2 files changed, 5 insertions, 19 deletions
diff --git a/test/bt_unit_test.c b/test/bt_unit_test.c
index 8b726be..1dd8852 100644
--- a/test/bt_unit_test.c
+++ b/test/bt_unit_test.c
@@ -808,8 +808,6 @@ tc_table_t tc_ipsp[] = {
, BT_UNIT_TEST_FUNCTION_IPSP_SET_CONNECTION_STATE_CHANGED_CB},
{"bt_ipsp_unset_connection_state_changed_cb[Client/Server role]"
, BT_UNIT_TEST_FUNCTION_IPSP_UNSET_CONNECTION_STATE_CHANGED_CB},
- {"bt_ipsp_set_connection_bt_iface_info_cb[Client/Server role]"
- , BT_UNIT_TEST_FUNCTION_IPSP_SET_CONNECTION_BT_IFACE_INFO_CB},
{"bt_ipsp_create_ipsp_app_server_socket[Server App role]"
, BT_UNIT_TEST_FUNCTION_IPSP_CREATE_APP_SERVER_SOCKET},
{"bt_ipsp_connect_with_ipsp_app_server_socket[Client App role]"
@@ -2671,21 +2669,16 @@ void __bt_le_ipsp_init_state_changed_cb(int result,
}
void __bt_le_ipsp_connection_state_changed_cb(int result,
- bool connected, const char *remote_address, void *user_data)
+ bool connected, const char *remote_address, const char *iface_name, void *user_data)
{
TC_PRT("__bt_le_ipsp_connection_state_changed_cb: called");
TC_PRT("result: %s", __bt_get_error_message(result));
TC_PRT("Connected: %d", connected);
-}
-
-void __bt_le_ipsp_interface_info_cb(int result,
- const char *remote_address, const char *iface_name,
- void *user_data)
-{
- TC_PRT("__bt_le_ipsp_interface_info_cb: called");
- TC_PRT("result: %s", __bt_get_error_message(result));
TC_PRT("Remote BT address : %s", remote_address);
- TC_PRT("Local BT Interface : %s is UP", iface_name);
+ if(connected)
+ TC_PRT("Local BT Interface : %s is Up", iface_name);
+ else
+ TC_PRT("Local BT Interface : %s is Down", iface_name);
memcpy(ipsp_iface_name, iface_name, strlen(iface_name));
}
@@ -7643,12 +7636,6 @@ int test_input_callback(void *data)
TC_PRT("returns %s\n", __bt_get_error_message(ret));
break;
- case BT_UNIT_TEST_FUNCTION_IPSP_SET_CONNECTION_BT_IFACE_INFO_CB:
- ret = bt_le_ipsp_add_interface_info_cb(
- __bt_le_ipsp_interface_info_cb, NULL);
- TC_PRT("returns %s\n", __bt_get_error_message(ret));
- break;
-
case BT_UNIT_TEST_FUNCTION_IPSP_CREATE_APP_SERVER_SOCKET: {
int serverSocket = 0;
struct ifaddrs *ifap, *ifa;
diff --git a/test/bt_unit_test.h b/test/bt_unit_test.h
index c1506ec..abb1a5c 100644
--- a/test/bt_unit_test.h
+++ b/test/bt_unit_test.h
@@ -335,7 +335,6 @@ typedef enum {
BT_UNIT_TEST_FUNCTION_IPSP_START_ADVERTISING,
BT_UNIT_TEST_FUNCTION_IPSP_SET_CONNECTION_STATE_CHANGED_CB,
BT_UNIT_TEST_FUNCTION_IPSP_UNSET_CONNECTION_STATE_CHANGED_CB,
- BT_UNIT_TEST_FUNCTION_IPSP_SET_CONNECTION_BT_IFACE_INFO_CB,
BT_UNIT_TEST_FUNCTION_IPSP_CREATE_APP_SERVER_SOCKET,
BT_UNIT_TEST_FUNCTION_IPSP_CONNECT_WITH_APP_SERVER_SOCKET,
BT_UNIT_TEST_FUNCTION_IPSP_SEND_IPV6_APP_DATA,