Diff between 49e49b00dc6b15952118eef29f5f2c14bc5712c8 and b6bc216fd7754caaa7fd579beb3d96f31fa93ded

Changed Files

File Additions Deletions Status
unit/test-avrcp.c +11 -0 modified

Full Patch

diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c
index d2b7332..9e97ac5 100644
--- a/unit/test-avrcp.c
+++ b/unit/test-avrcp.c
@@ -785,6 +785,9 @@ static void test_client(gconstpointer data)
 		avrcp_send_passthrough(context->session, IEEEID_BTSIG,
 						AVC_VENDOR_PREV_GROUP);
 
+	if (g_str_equal(context->data->test_name, "/TP/VLH/BV-01-C"))
+		avrcp_set_volume(context->session, 0x00);
+
 	execute_context(context);
 }
 
@@ -1574,5 +1577,13 @@ int main(int argc, char *argv[])
 				AVC_VENDOR_UNIQUE, 0x05, 0x00, 0x19,
 				0x58, 0x00, AVC_VENDOR_PREV_GROUP));
 
+	/* Volume Level Handling */
+
+	/* Set absolute volume – CT */
+	define_test("/TP/VLH/BV-01-C", test_client,
+			raw_pdu(0x00, 0x11, 0x0e, 0x00, 0x48, 0x00,
+				0x00, 0x19, 0x58, AVRCP_SET_ABSOLUTE_VOLUME,
+				0x00, 0x00, 0x01, 0x00));
+
 	return g_test_run();
 }