summaryrefslogtreecommitdiff
path: root/unit/test-avdtp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-12-02 09:43:02 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-12-05 12:36:03 +0200
commit65959c7a55a964c498d3f5d690625c727c285b11 (patch)
tree2540d05235702eae93c9781660110d56d022a293 /unit/test-avdtp.c
parent74ffa14d50220aab298a3753ba743e2c266a8a64 (diff)
downloadbluez-65959c7a55a964c498d3f5d690625c727c285b11.tar.gz
unit/AVDTP: Add /TP/SIG/SMG/BI-20-C test
Verify that the IUT (ACP) is able to issue a start stream reject response to the INT.
Diffstat (limited to 'unit/test-avdtp.c')
-rw-r--r--unit/test-avdtp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c
index 9919b6d0e..b02334ff5 100644
--- a/unit/test-avdtp.c
+++ b/unit/test-avdtp.c
@@ -857,6 +857,17 @@ int main(int argc, char *argv[])
raw_pdu(0x82, 0x06),
raw_pdu(0x90, 0x07, 0x04),
raw_pdu(0x93, 0x07, 0x04, 0x31));
+ define_test("/TP/SIG/SMG/BI-20-C", test_server,
+ raw_pdu(0x00, 0x01),
+ raw_pdu(0x02, 0x01, 0x04, 0x00),
+ raw_pdu(0x10, 0x02, 0x04),
+ raw_pdu(0x12, 0x02, 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),
+ raw_pdu(0x22, 0x03),
+ raw_pdu(0x30, 0x07, 0x04),
+ raw_pdu(0x33, 0x07, 0x04, 0x31));
return g_test_run();
}