From 11bb99ed102b2c986833b8ad6079c637f86fa4e7 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 27 Nov 2013 16:35:39 +0200 Subject: [PATCH] unit/AVDTP: Add /TP/SIG/SMG/BV-26-C test Verify that the IUT (ACP) reports the reception of a valid query for remote SEP capabilities and replies the returned capabilities using Get_All_Capabilities. --- unit/test-avdtp.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c index aad0dc591..8a2a8a9e8 100644 --- a/unit/test-avdtp.c +++ b/unit/test-avdtp.c @@ -344,6 +344,21 @@ static void test_server(gconstpointer data) struct context *context = create_context(0x0100, data); struct avdtp_local_sep *sep; + sep = avdtp_register_sep(AVDTP_SEP_TYPE_SOURCE, AVDTP_MEDIA_TYPE_AUDIO, + 0x00, FALSE, &sep_ind, NULL, context); + + g_idle_add(send_pdu, context); + + execute_context(context); + + avdtp_unregister_sep(sep); +} + +static void test_server_1_3(gconstpointer data) +{ + struct context *context = create_context(0x0103, data); + struct avdtp_local_sep *sep; + sep = avdtp_register_sep(AVDTP_SEP_TYPE_SOURCE, AVDTP_MEDIA_TYPE_AUDIO, 0x00, TRUE, &sep_ind, NULL, context); @@ -630,6 +645,12 @@ int main(int argc, char *argv[]) raw_pdu(0x30, 0x01), raw_pdu(0x32, 0x01, 0x04, 0x00), raw_pdu(0x40, 0x0c, 0x04)); + define_test("/TP/SIG/SMG/BV-26-C", test_server_1_3, + raw_pdu(0x00, 0x01), + raw_pdu(0x02, 0x01, 0x04, 0x00), + raw_pdu(0x10, 0x0c, 0x04), + raw_pdu(0x12, 0x0c, 0x01, 0x00, 0x07, 0x06, 0x00, 0x00, + 0xff, 0xff, 0x02, 0x40)); return g_test_run(); } -- 2.47.3