From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> To verify the PlayItem response issued by the TG when an invalid UID is requested. --- unit/test-avrcp.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c index 5af4f4b..9da8761 100644 --- a/unit/test-avrcp.c +++ b/unit/test-avrcp.c @@ -598,6 +598,9 @@ static int play_item(struct avrcp *session, uint8_t transaction, uint8_t scope, { DBG(""); + if (!uid) + return -ENOENT; + avrcp_play_item_rsp(session, transaction); return -EAGAIN; @@ -1002,6 +1005,16 @@ int main(int argc, char *argv[]) brs_pdu(0x02, 0x11, 0x0e, AVRCP_GET_ITEM_ATTRIBUTES, 0x00, 0x02, 0x04, 0x00)); + /* PlayItem - NowPlaying - TG */ + define_test("/TP/MCN/NP/BI-01-C", test_server, + brs_pdu(0x00, 0x11, 0x0e, AVRCP_PLAY_ITEM, + 0x00, 0x0b, AVRCP_MEDIA_NOW_PLAYING, + 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, /* uid */ + 0xaa, 0xbb), /* counter */ + brs_pdu(0x02, 0x11, 0x0e, AVRCP_PLAY_ITEM, + 0x00, 0x01, 0x09)); + /* Media Player Selection IOP tests */ /* Listing of available media players */ -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html