Linux bluetooth development
 help / color / mirror / Atom feed
From: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCHv3 08/16] unit/avrcp: Add /TP/MPS/BV-01-I test
Date: Tue, 18 Mar 2014 11:20:39 +0200	[thread overview]
Message-ID: <1395134447-8957-9-git-send-email-Andrei.Emeltchenko.news@gmail.com> (raw)
In-Reply-To: <1395134447-8957-1-git-send-email-Andrei.Emeltchenko.news@gmail.com>

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

Test verifies that Controller is able to request the list of available
Media Players.
---
 unit/test-avrcp.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c
index 4336668..46c10a3 100644
--- a/unit/test-avrcp.c
+++ b/unit/test-avrcp.c
@@ -571,6 +571,11 @@ static void test_client(gconstpointer data)
 					AVRCP_MEDIA_PLAYER_LIST, 0, 2, NULL, 0,
 					NULL, NULL);
 
+	if (g_str_equal(context->data->test_name, "/TP/MPS/BV-01-I"))
+		avrcp_get_folder_items(context->session,
+					AVRCP_MEDIA_PLAYER_LIST, 0, 2, NULL, 0,
+					NULL, NULL);
+
 	if (g_str_equal(context->data->test_name, "/TP/CFG/BV-01-C"))
 		avrcp_get_capabilities(context->session, CAP_EVENTS_SUPPORTED,
 								NULL, NULL);
@@ -660,6 +665,16 @@ int main(int argc, char *argv[])
 				0x00, 0x00, 0x00, 0x02, /* end */
 				0x00));
 
+	/* Media Player Selection IOP tests */
+
+	/* Listing of available media players */
+	define_test("/TP/MPS/BV-01-I", 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 */
 
 	/*
-- 
1.8.3.2


  parent reply	other threads:[~2014-03-18  9:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-18  9:20 [PATCHv3 00/16] AVRCP code and test cases Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 01/16] android/avrcp: Add avrcp_connect_browsing() Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 02/16] android/avrcp: Add avrcp_set_browsed_player() function Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 03/16] unit/avrcp: Add browsing channel support in unit testing Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 04/16] unit/avrcp: Add /TP/MPS/BV-03-C test Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 05/16] android/avrcp: Use defined constant instead of magic number Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 06/16] android/avrcp: Add avrcp_get_folder_items() function Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 07/16] unit/avrcp: Add /TP/MPS/BV-08-C test Andrei Emeltchenko
2014-03-18  9:20 ` Andrei Emeltchenko [this message]
2014-03-18  9:20 ` [PATCHv3 09/16] unit/avrcp: Add Connection establishment and release tests Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 10/16] unit/avrcp: Add /TP/MCN/CB/BV-01-C test Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 11/16] android/avrcp: Add avrcp_change_path() function Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 12/16] unit/avrcp: Add /TP/MCN/CB/BV-04-C test Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 13/16] android/avrcp: Add avrcp_get_item_attributes() function Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 14/16] unit/avrcp: Add /TP/MCN/CB/BV-07-C test Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 15/16] android/avrcp: Add avrcp_search() function Andrei Emeltchenko
2014-03-18  9:20 ` [PATCHv3 16/16] unit/avrcp: Add /TP/MCN/SRC/BV-01-C test Andrei Emeltchenko
2014-03-19  9:13 ` [PATCHv3 00/16] AVRCP code and test cases Andrei Emeltchenko
2014-03-19 11:32   ` Luiz Augusto von Dentz
2014-03-20  9:14     ` Andrei Emeltchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1395134447-8957-9-git-send-email-Andrei.Emeltchenko.news@gmail.com \
    --to=andrei.emeltchenko.news@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox