diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-03-12 16:40:27 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-03-13 13:07:44 +0200 |
commit | 8f87093398fabdda0b3e0476d3f56a1748bd6954 (patch) | |
tree | 370641d0a8401c691152afb0ed579e881d4f5086 | |
parent | 3892291b9b2bf8adb4f9020e0793a8572c02cdbf (diff) | |
download | bluez-8f87093398fabdda0b3e0476d3f56a1748bd6954.tar.gz |
unit/avrcp: Add /TP/BGN/BV-02-I test
Test verifies that the Controller can send Prev Group command to the
Target.
-rw-r--r-- | unit/test-avrcp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c index f0f36dd4d..3714c1a0f 100644 --- a/unit/test-avrcp.c +++ b/unit/test-avrcp.c @@ -639,6 +639,11 @@ static void test_client(gconstpointer data) if (g_str_equal(context->data->test_name, "/TP/BGN/BV-01-I")) avrcp_send_passthrough(context->session, IEEEID_BTSIG, AVC_VENDOR_NEXT_GROUP); + + if (g_str_equal(context->data->test_name, "/TP/BGN/BV-02-I")) + avrcp_send_passthrough(context->session, IEEEID_BTSIG, + AVC_VENDOR_PREV_GROUP); + execute_context(context); } @@ -1040,5 +1045,12 @@ int main(int argc, char *argv[]) AVC_VENDOR_UNIQUE, 0x05, 0x00, 0x19, 0x58, 0x00, AVC_VENDOR_NEXT_GROUP)); + /* Previous Group command transfer - CT */ + define_test("/TP/BGN/BV-02-I", test_client, + raw_pdu(0x00, 0x11, 0x0e, 0x00, 0x48, + AVC_OP_PASSTHROUGH, + AVC_VENDOR_UNIQUE, 0x05, 0x00, 0x19, + 0x58, 0x00, AVC_VENDOR_PREV_GROUP)); + return g_test_run(); } |