From f59732aefc2a2eec0811f51db689546536a71b8b Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 23 Apr 2014 10:35:26 +0300 Subject: [PATCH] unit/test-avrcp: Add /TP/INV/BI-02-C test To verify the General Reject Response issued by the TG. --- unit/test-avrcp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c index ad76e5ca7..a483f0eaf 100644 --- a/unit/test-avrcp.c +++ b/unit/test-avrcp.c @@ -1166,6 +1166,12 @@ int main(int argc, char *argv[]) 0xff, 0x00, 0x00, 0x01, AVRCP_STATUS_INVALID_COMMAND)); + /* Invalid PDU ID - Browsing TG */ + define_test("/TP/INV/BI-02-C", test_server, + brs_pdu(0x00, 0x11, 0x0e, 0xff, 0x00, 0x00), + brs_pdu(0x02, 0x11, 0x0e, AVRCP_GENERAL_REJECT, + 0x00, 0x01, AVRCP_STATUS_INVALID_COMMAND)); + /* Next Group command transfer - CT */ define_test("/TP/BGN/BV-01-I", test_client, raw_pdu(0x00, 0x11, 0x0e, 0x00, 0x48, -- 2.47.3