From 95344c820fa9b7c388f816929041c32acc904ed0 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 28 Nov 2013 15:41:50 +0200 Subject: [PATCH] unit/AVDTP: Add /TP/SIG/SMG/BI-03-C test Verify that the IUT (ACP) is able to issue a reject response signal upon a tester's request in answer to a stream discover command. --- unit/test-avdtp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c index 0451904a6..ee110dda5 100644 --- a/unit/test-avdtp.c +++ b/unit/test-avdtp.c @@ -376,6 +376,15 @@ static void test_server_1_3(gconstpointer data) avdtp_unregister_sep(sep); } +static void test_server_0_sep(gconstpointer data) +{ + struct context *context = create_context(0x0100, data); + + g_idle_add(send_pdu, context); + + execute_context(context); +} + static void discover_cb(struct avdtp *session, GSList *seps, struct avdtp_error *err, void *user_data) { @@ -694,6 +703,9 @@ int main(int argc, char *argv[]) raw_pdu(0xb3, 0x01, 0x01)); define_test("/TP/SIG/SMG/BI-02-C", test_server, raw_pdu(0x01, 0x01)); + define_test("/TP/SIG/SMG/BI-03-C", test_server_0_sep, + raw_pdu(0x00, 0x01), + raw_pdu(0x03, 0x01, 0x19)); return g_test_run(); } -- 2.47.3