OSDN Git Service

unit/avrcp: Add /TP/MPS/BV-08-C test
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Mon, 31 Mar 2014 12:25:01 +0000 (15:25 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 2 Apr 2014 11:25:40 +0000 (14:25 +0300)
Test verifies that GetFolderItems cmd for the Media Player List
issued by the Controller.

unit/test-avrcp.c

index 51e26f3..6b4465d 100644 (file)
@@ -577,6 +577,10 @@ static void test_client(gconstpointer data)
        if (g_str_equal(context->data->test_name, "/TP/MPS/BV-03-C"))
                avrcp_set_browsed_player(context->session, 0xabcd);
 
+       if (g_str_equal(context->data->test_name, "/TP/MPS/BV-08-C"))
+               avrcp_get_folder_items(context->session,
+                                       AVRCP_MEDIA_PLAYER_LIST, 0, 2, 0, NULL);
+
        if (g_str_equal(context->data->test_name, "/TP/CFG/BV-01-C"))
                avrcp_get_capabilities(context->session, CAP_EVENTS_SUPPORTED);
 
@@ -654,6 +658,14 @@ int main(int argc, char *argv[])
                        raw_pdu(0x00, 0x11, 0x0e, 0x70, 0x00, 0x02,
                                0xab, 0xcd));
 
+       /* GetFolderItems - CT */
+       define_test("/TP/MPS/BV-08-C", test_client,
+                       raw_pdu(0x00, 0x11, 0x0e, AVRCP_GET_FOLDER_ITEMS,
+                               0x00, 0x0a, AVRCP_MEDIA_PLAYER_LIST,
+                               0x00, 0x00, 0x00, 0x00, /* start */
+                               0x00, 0x00, 0x00, 0x02, /* end */
+                               0x00));
+
        /* Connection Establishment for Control tests */
 
        /*