summaryrefslogtreecommitdiff
path: root/unit/test-avdtp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-12-04 14:28:43 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-12-05 12:36:03 +0200
commitf0d3a528094a9abf7d408b9c726c78e13dd597b1 (patch)
treee67dace68adbda4c2bbfd2c0a33a1cedd1e6f7ed /unit/test-avdtp.c
parent9f517cf9b557d20b560c40aaab4cc6d24a6819c3 (diff)
downloadbluez-f0d3a528094a9abf7d408b9c726c78e13dd597b1.tar.gz
unit/AVDTP: Add /TP/SIG/SMG/BI-30-C test
Verify that the IUT (INT) is able to ignore a reserved capability in the GetCapabilities response.
Diffstat (limited to 'unit/test-avdtp.c')
-rw-r--r--unit/test-avdtp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c
index 45e962658..d0f35107b 100644
--- a/unit/test-avdtp.c
+++ b/unit/test-avdtp.c
@@ -1045,6 +1045,14 @@ int main(int argc, char *argv[])
define_test("/TP/SIG/SMG/BI-28-C", test_server,
raw_pdu(0x00, 0xff),
raw_pdu(0x01, 0x3f));
+ define_test("/TP/SIG/SMG/BI-30-C", test_client,
+ raw_pdu(0x00, 0x01),
+ raw_pdu(0x02, 0x01, 0x04, 0x00),
+ raw_pdu(0x10, 0x02, 0x04),
+ raw_pdu(0x12, 0x02, 0xee, 0x01, 0x00, 0x01, 0x00, 0x07,
+ 0x06, 0x00, 0x00, 0xff, 0xff, 0x02, 0x40),
+ raw_pdu(0x20, 0x03, 0x04, 0x04, 0x01, 0x00, 0x07, 0x06,
+ 0x00, 0x00, 0x21, 0x02, 0x02, 0x20));
return g_test_run();
}