Those tests are now in the newer tester. --- android/android-tester.c | 438 ----------------------------------------------- 1 file changed, 438 deletions(-) diff --git a/android/android-tester.c b/android/android-tester.c index ff14fc8..2b72bd8 100644 --- a/android/android-tester.c +++ b/android/android-tester.c @@ -2163,289 +2163,6 @@ static void test_dummy(const void *test_data) tester_test_passed(); } -static void test_discovery_start_success(const void *test_data) -{ - struct test_data *data = tester_get_data(); - bt_status_t status; - - init_test_conditions(data); - - status = data->if_bluetooth->start_discovery(); - check_expected_status(status); -} - -static void test_discovery_stop_done(const void *test_data) -{ - struct test_data *data = tester_get_data(); - bt_status_t status; - - init_test_conditions(data); - - status = data->if_bluetooth->cancel_discovery(); - check_expected_status(status); -} - -static void test_discovery_stop_success(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_discovery_start_done(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_discovery_device_found(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprops_success(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_bdname_success(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_uuids_success(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_cod_success(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_tod_success(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_rssi_success(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_timestamp_success(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_bdaddr_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_servrec_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_scanmode_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_bondeddev_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_disctimeout_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_verinfo_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_getprop_fname_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_fname_success(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_bdname_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_uuids_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_cod_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_tod_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_rssi_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_timestamp_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_bdaddr_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_servrec_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_scanmode_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_bondeddev_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - -static void test_dev_setprop_disctimeout_fail(const void *test_data) -{ - struct test_data *data = tester_get_data(); - - init_test_conditions(data); - - data->if_bluetooth->start_discovery(); -} - static void bond_device_auth_fail_callback(uint16_t index, uint16_t length, const void *param, void *user_data) @@ -3659,161 +3376,6 @@ int main(int argc, char *argv[]) tester_init(&argc, &argv); - test_bredrle("Bluetooth BR/EDR Discovery Start - Success", - &bluetooth_discovery_start_success_test, - setup_enabled_adapter, - test_discovery_start_success, teardown); - - test_bredrle("Bluetooth BR/EDR Discovery Start - Success 2", - &bluetooth_discovery_start_success2_test, - setup_enabled_adapter, - test_discovery_start_done, teardown); - - test_bredrle("Bluetooth BR/EDR Discovery Stop - Success", - &bluetooth_discovery_stop_success_test, - setup_enabled_adapter, - test_discovery_stop_success, teardown); - - test_bredrle("Bluetooth BR/EDR Discovery Stop - Success 2", - &bluetooth_discovery_stop_success2_test, - setup_enabled_adapter, - test_discovery_stop_done, teardown); - - test_bredr("Bluetooth BR/EDR Discovery Device Found", - &bluetooth_discovery_device_found_test, - setup_enabled_adapter, - test_discovery_device_found, teardown); - - test_bredr("Bluetooth Device Get Props - Success", - &bt_dev_getprops_success_test, - setup_enabled_adapter, - test_dev_getprops_success, teardown); - - test_bredr("Bluetooth Device Get BDNAME - Success", - &bt_dev_getprop_bdname_success_test, - setup_enabled_adapter, - test_dev_getprop_bdname_success, teardown); - - test_bredr("Bluetooth Device Get UUIDS - Success", - &bt_dev_getprop_uuids_success_test, - setup_enabled_adapter, - test_dev_getprop_uuids_success, teardown); - - test_bredr("Bluetooth Device Get COD - Success", - &bt_dev_getprop_cod_success_test, - setup_enabled_adapter, - test_dev_getprop_cod_success, teardown); - - test_bredr("Bluetooth Device Get TOD - Success", - &bt_dev_getprop_tod_success_test, - setup_enabled_adapter, - test_dev_getprop_tod_success, teardown); - - test_bredr("Bluetooth Device Get RSSI - Success", - &bt_dev_getprop_rssi_success_test, - setup_enabled_adapter, - test_dev_getprop_rssi_success, teardown); - - test_bredr("Bluetooth Device Get TIMESTAMP - Success", - &bt_dev_getprop_timpestamp_success_test, - setup_enabled_adapter, - test_dev_getprop_timestamp_success, teardown); - - test_bredr("Bluetooth Device Get BDADDR - Fail", - &bt_dev_getprop_bdaddr_fail_test, - setup_enabled_adapter, - test_dev_getprop_bdaddr_fail, teardown); - - test_bredr("Bluetooth Device Get SERVICE_RECORD - Fail", - &bt_dev_getprop_servrec_fail_test, - setup_enabled_adapter, - test_dev_getprop_servrec_fail, teardown); - - test_bredr("Bluetooth Device Get SCAN_MODE - Fail", - &bt_dev_getprop_scanmode_fail_test, - setup_enabled_adapter, - test_dev_getprop_scanmode_fail, teardown); - - test_bredr("Bluetooth Device Get BONDED_DEVICES - Fail", - &bt_dev_getprop_bondeddev_fail_test, - setup_enabled_adapter, - test_dev_getprop_bondeddev_fail, teardown); - - test_bredr("Bluetooth Device Get DISCOVERY_TIMEOUT - Fail", - &bt_dev_getprop_disctimeout_fail_test, - setup_enabled_adapter, - test_dev_getprop_disctimeout_fail, teardown); - - test_bredr("Bluetooth Device Get VERSION_INFO - Fail", - &bt_dev_getprop_verinfo_fail_test, - setup_enabled_adapter, - test_dev_getprop_verinfo_fail, teardown); - - test_bredr("Bluetooth Device Get FRIENDLY_NAME - Fail", - &bt_dev_getprop_fname_fail_test, - setup_enabled_adapter, - test_dev_getprop_fname_fail, teardown); - - test_bredr("Bluetooth Device Set FRIENDLY_NAME - Success", - &bt_dev_setprop_fname_success_test, - setup_enabled_adapter, - test_dev_setprop_fname_success, teardown); - - test_bredr("Bluetooth Device Set BDNAME - Fail", - &bt_dev_setprop_bdname_fail_test, - setup_enabled_adapter, - test_dev_setprop_bdname_fail, teardown); - - test_bredr("Bluetooth Device Set UUIDS - Fail", - &bt_dev_setprop_uuids_fail_test, - setup_enabled_adapter, - test_dev_setprop_uuids_fail, teardown); - - test_bredr("Bluetooth Device Set COD - Fail", - &bt_dev_setprop_cod_fail_test, - setup_enabled_adapter, - test_dev_setprop_cod_fail, teardown); - - test_bredr("Bluetooth Device Set TOD - Fail", - &bt_dev_setprop_tod_fail_test, - setup_enabled_adapter, - test_dev_setprop_tod_fail, teardown); - - test_bredr("Bluetooth Device Set RSSI - Fail", - &bt_dev_setprop_rssi_fail_test, - setup_enabled_adapter, - test_dev_setprop_rssi_fail, teardown); - - test_bredr("Bluetooth Device Set TIMESTAMP - Fail", - &bt_dev_setprop_timpestamp_fail_test, - setup_enabled_adapter, - test_dev_setprop_timestamp_fail, teardown); - - test_bredr("Bluetooth Device Set BDADDR - Fail", - &bt_dev_setprop_bdaddr_fail_test, - setup_enabled_adapter, - test_dev_setprop_bdaddr_fail, teardown); - - test_bredr("Bluetooth Device Set SERVICE_RECORD - Fail", - &bt_dev_setprop_servrec_fail_test, - setup_enabled_adapter, - test_dev_setprop_servrec_fail, teardown); - - test_bredr("Bluetooth Device Set SCAN_MODE - Fail", - &bt_dev_setprop_scanmode_fail_test, - setup_enabled_adapter, - test_dev_setprop_scanmode_fail, teardown); - - test_bredr("Bluetooth Device Set BONDED_DEVICES - Fail", - &bt_dev_setprop_bondeddev_fail_test, - setup_enabled_adapter, - test_dev_setprop_bondeddev_fail, teardown); - - test_bredr("Bluetooth Device Set DISCOVERY_TIMEOUT - Fail", - &bt_dev_setprop_disctimeout_fail_test, - setup_enabled_adapter, - test_dev_setprop_disctimeout_fail, teardown); - test_bredr("Bluetooth Create Bond PIN - Success", &bt_bond_create_pin_success_test, setup_enabled_adapter, -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html