summaryrefslogtreecommitdiff
path: root/unit
diff options
context:
space:
mode:
authorŁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>2016-10-17 12:02:31 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-10-18 13:55:34 +0300
commit9533cef1b742ada04867c73723153aa13480504c (patch)
treea99b2a5e00f92cb3a19acbe1ba02664c04b4b75c /unit
parentcd1933f51bb5b50340f598676a7c0e10a1f6056d (diff)
downloadbluez-9533cef1b742ada04867c73723153aa13480504c.tar.gz
unit/test-gatt: Add /TP/GAD/CL/BV-02-C-1-alternative
According to GATT.TS.4.2.1, 4.4.3 TP/GAD/CL/BV-02-C [Discover Primary Services by Service UUID – by Client] Pass verdict is also when response has end_handle = 0xffff. This patch add such test.
Diffstat (limited to 'unit')
-rw-r--r--unit/test-gatt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/unit/test-gatt.c b/unit/test-gatt.c
index 81297197e..c7a8fa55a 100644
--- a/unit/test-gatt.c
+++ b/unit/test-gatt.c
@@ -2414,6 +2414,14 @@ int main(int argc, char *argv[])
0x18),
raw_pdu(0x01, 0x06, 0x08, 0x00, 0x0a));
+ define_test_att("/TP/GAD/CL/BV-02-C-1-alternative",
+ test_search_primary, &uuid_16,
+ NULL,
+ MTU_EXCHANGE_CLIENT_PDUS,
+ raw_pdu(0x06, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28, 0x00,
+ 0x18),
+ raw_pdu(0x07, 0x01, 0x00, 0xFF, 0xFF));
+
define_test_att("/TP/GAD/CL/BV-02-C-2", test_search_primary, &uuid_128,
NULL,
MTU_EXCHANGE_CLIENT_PDUS,