--- android/tester-hdp.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/android/tester-hdp.c b/android/tester-hdp.c index 1f5fee2..9193609 100644 --- a/android/tester-hdp.c +++ b/android/tester-hdp.c @@ -162,6 +162,16 @@ static void hdp_register_source_stream_app_action(void) free(reg); } +static void hdp_unregister_app_action(void) +{ + struct test_data *data = tester_get_data(); + struct step *step = g_new0(struct step, 1); + + step->action_status = data->if_hdp->unregister_application(1); + + schedule_action_verification(step); +} + static struct test_case test_cases[] = { TEST_CASE_BREDRLE("HDP Init", ACTION_SUCCESS(dummy_action, NULL), @@ -186,6 +196,14 @@ static struct test_case test_cases[] = { CALLBACK_HDP_APP_REG_STATE(CB_HDP_APP_REG_STATE, 1, BTHL_APP_REG_STATE_REG_SUCCESS), ), + TEST_CASE_BREDRLE("HDP Unegister Application", + ACTION_SUCCESS(hdp_register_source_stream_app_action, NULL), + CALLBACK_HDP_APP_REG_STATE(CB_HDP_APP_REG_STATE, 1, + BTHL_APP_REG_STATE_REG_SUCCESS), + ACTION_SUCCESS(hdp_unregister_app_action, NULL), + CALLBACK_HDP_APP_REG_STATE(CB_HDP_APP_REG_STATE, 1, + BTHL_APP_REG_STATE_DEREG_SUCCESS), + ), }; struct queue *get_hdp_tests(void) -- 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