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