diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c
index ec7ea6a..b86d572 100644
--- a/unit/test-avrcp.c
+++ b/unit/test-avrcp.c
return 1;
}
+static ssize_t avrcp_handle_set_addr_player(struct avrcp *session,
+ uint8_t transaction,
+ uint16_t params_len,
+ uint8_t *params,
+ void *user_data)
+{
+ DBG("");
+
+ params[0] = 0;
+
+ return 1;
+}
+
static ssize_t avrcp_handle_get_play_status(struct avrcp *session,
uint8_t transaction,
uint16_t params_len,
{ AVRCP_REGISTER_NOTIFICATION,
AVC_CTYPE_NOTIFY, AVC_CTYPE_INTERIM,
avrcp_handle_register_notification },
+ { AVRCP_SET_ADDRESSED_PLAYER,
+ AVC_CTYPE_CONTROL, AVC_CTYPE_STABLE,
+ avrcp_handle_set_addr_player },
{ },
};
0x00, 0x19, 0x58, 0x60, 0x00, 0x00,
0x02, 0xab, 0xcd));
+ /* SetAddressedPlayer - TG */
+ define_test("/TP/MPS/BV-02-C", test_server,
+ raw_pdu(0x00, 0x11, 0x0e, 0x00, 0x48, 0x00,
+ 0x00, 0x19, 0x58, AVRCP_SET_ADDRESSED_PLAYER,
+ 0x00, 0x00, 0x02, 0xab, 0xcd),
+ raw_pdu(0x02, 0x11, 0x0e, AVC_CTYPE_STABLE,
+ 0x48, 0x00, 0x00, 0x19, 0x58,
+ AVRCP_SET_ADDRESSED_PLAYER,
+ 0x00, 0x00, 0x01, 0x00));
+
/* Connection Establishment for Control tests */
/*