From 79ab981fa7b8b43d8a23e214044814c71dc712dc Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 18 Dec 2013 15:33:48 +0200 Subject: [PATCH] unit/AVDTP: Add /TP/SIG/SYN/BV-01-C test Verify if the IUT (SNK device) offers the delay reporting capability. This is required in order to enable a SRC to configure delay reporting. --- unit/test-avdtp.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c index 8a5f1f45e..e3374b3db 100644 --- a/unit/test-avdtp.c +++ b/unit/test-avdtp.c @@ -520,6 +520,21 @@ static void test_server_1_3(gconstpointer data) avdtp_unregister_sep(sep); } +static void test_server_1_3_sink(gconstpointer data) +{ + struct context *context = create_context(0x0103, data); + struct avdtp_local_sep *sep; + + sep = avdtp_register_sep(AVDTP_SEP_TYPE_SINK, AVDTP_MEDIA_TYPE_AUDIO, + 0x00, TRUE, &sep_ind, NULL, context); + + g_idle_add(send_pdu, context); + + execute_context(context); + + avdtp_unregister_sep(sep); +} + static void test_server_0_sep(gconstpointer data) { struct context *context = create_context(0x0100, data); @@ -1234,5 +1249,18 @@ int main(int argc, char *argv[]) 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)); + /* + * Delay Reporting + * + * Verify that the stream management signaling procedure of delay + * reporting is implemented according to its specification in AVDTP. + */ + define_test("/TP/SIG/SYN/BV-01-C", test_server_1_3_sink, + raw_pdu(0x00, 0x01), + raw_pdu(0x02, 0x01, 0x04, 0x08), + raw_pdu(0x10, 0x0c, 0x04), + raw_pdu(0x12, 0x0c, 0x01, 0x00, 0x07, 0x06, 0x00, 0x00, + 0xff, 0xff, 0x02, 0x40, 0x08, 0x00)); + return g_test_run(); } -- 2.47.3