From d4a3119903a140c88e1a69eb837b69275ac65bef Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 19 May 2014 14:33:57 +0300 Subject: [PATCH] unit/test-avrcp: Add /TP/VLH/BI-01-C test To verify the behavior of the TG receiving an invalid SetAbsoluteVolume command. --- unit/test-avrcp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c index fc7d0fe35..d26b12aa0 100644 --- a/unit/test-avrcp.c +++ b/unit/test-avrcp.c @@ -1605,5 +1605,14 @@ int main(int argc, char *argv[]) 0x00, 0x19, 0x58, AVRCP_SET_ABSOLUTE_VOLUME, 0x00, 0x00, 0x01, 0x00)); + /* Set absolute volume – TG */ + define_test("/TP/VLH/BI-01-C", test_server, + raw_pdu(0x00, 0x11, 0x0e, 0x00, 0x48, 0x00, + 0x00, 0x19, 0x58, AVRCP_SET_ABSOLUTE_VOLUME, + 0x00, 0x00, 0x00), + raw_pdu(0x02, 0x11, 0x0e, 0x0a, 0x48, 0x00, + 0x00, 0x19, 0x58, AVRCP_SET_ABSOLUTE_VOLUME, + 0x00, 0x00, 0x01, 0x01)); + return g_test_run(); } -- 2.47.3