summaryrefslogtreecommitdiff
path: root/unit/test-avdtp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-12-20 09:51:56 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-12-23 10:59:44 +0200
commitb18cf6d32fb5faf6a88ee1f6d5245f3b2f6975cc (patch)
treeae23126bc87fc50c870657faf7eb18e5acc494a3 /unit/test-avdtp.c
parentf4f6c6026ed31064c46fa8f2765216d8feb1f55c (diff)
downloadbluez-b18cf6d32fb5faf6a88ee1f6d5245f3b2f6975cc.tar.gz
unit/AVDTP: Add /TP/SIG/SYN/BV-04-C test
Verify that an initial delay report is sent by a SNK (INT) device when the Stream Configuration Procedure is initiated by the SNK device (transition from IDLE to OPEN state) and that the report conforms to the specification.
Diffstat (limited to 'unit/test-avdtp.c')
-rw-r--r--unit/test-avdtp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c
index 13f0df663..799e2f2d4 100644
--- a/unit/test-avdtp.c
+++ b/unit/test-avdtp.c
@@ -1285,6 +1285,18 @@ int main(int argc, char *argv[])
0x00),
raw_pdu(0x22, 0x03),
raw_pdu(0x00, 0x0d, 0x04, 0x00, 0x00));
+ define_test("/TP/SIG/SYN/BV-04-C", test_client_1_3,
+ raw_pdu(0x10, 0x01),
+ raw_pdu(0x12, 0x01, 0x04, 0x00),
+ raw_pdu(0x20, 0x0c, 0x04),
+ raw_pdu(0x22, 0x0c, 0x01, 0x00, 0x07, 0x06, 0x00, 0x00,
+ 0xff, 0xff, 0x02, 0x40, 0x0f, 0x00, 0x08, 0x00),
+ raw_pdu(0x30, 0x03, 0x04, 0x04, 0x01, 0x00, 0x07, 0x06,
+ 0x00, 0x00, 0x21, 0x02, 0x02, 0x20, 0x08,
+ 0x00),
+ raw_pdu(0x32, 0x03),
+ raw_pdu(0x40, 0x0d, 0x04, 0x00, 0x00));
+
return g_test_run();
}