diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-11-27 16:25:06 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-12-05 12:36:03 +0200 |
commit | eebcecdd22b126fb57e7472a343987279639e8a6 (patch) | |
tree | 8c5f61e51f6d779cbd1d90eb798ee4a74ba60b25 /unit | |
parent | cf663b9f5a4f21d01a9b178f9b69ed20a26dfccf (diff) | |
download | bluez-eebcecdd22b126fb57e7472a343987279639e8a6.tar.gz |
unit/AVDTP: Add /TP/SIG/SMG/BV-25-C test
Verify that the IUT (INT) is able to issue a valid query for remote SEP
capabilities and reports the replied ones using Get_All_Capabilities.
Diffstat (limited to 'unit')
-rw-r--r-- | unit/test-avdtp.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c index 0ddfa79d0..aad0dc591 100644 --- a/unit/test-avdtp.c +++ b/unit/test-avdtp.c @@ -367,7 +367,8 @@ static void discover_cb(struct avdtp *session, GSList *seps, int ret; if (g_str_equal(context->data->test_name, "/TP/SIG/SMG/BV-05-C") || - g_str_equal(context->data->test_name, "/TP/SIG/SMG/BV-07-C")) + g_str_equal(context->data->test_name, "/TP/SIG/SMG/BV-07-C") || + g_str_equal(context->data->test_name, "/TP/SIG/SMG/BV-25-C")) return; g_assert(err == NULL); @@ -416,6 +417,23 @@ static void test_client(gconstpointer data) avdtp_unregister_sep(sep); } +static void test_client_1_3(gconstpointer data) +{ + struct context *context = create_context(0x0103, data); + struct avdtp_local_sep *sep; + + sep = avdtp_register_sep(AVDTP_SEP_TYPE_SINK, AVDTP_MEDIA_TYPE_AUDIO, + 0x00, TRUE, NULL, &sep_cfm, + context); + context->sep = sep; + + avdtp_discover(context->session, discover_cb, context); + + execute_context(context); + + avdtp_unregister_sep(sep); +} + int main(int argc, char *argv[]) { g_test_init(&argc, &argv, NULL); @@ -608,6 +626,10 @@ int main(int argc, char *argv[]) raw_pdu(0x22, 0x03), raw_pdu(0x30, 0x0a, 0x04), raw_pdu(0x32, 0x0a)); + define_test("/TP/SIG/SMG/BV-25-C", test_client_1_3, + raw_pdu(0x30, 0x01), + raw_pdu(0x32, 0x01, 0x04, 0x00), + raw_pdu(0x40, 0x0c, 0x04)); return g_test_run(); } |