summaryrefslogtreecommitdiff
path: root/unit/test-hog.c
diff options
context:
space:
mode:
authorMariusz Skamra <mariusz.skamra@tieto.com>2015-03-16 16:38:55 +0100
committerSzymon Janc <szymon.janc@tieto.com>2015-03-17 12:52:16 +0100
commitc47a1de1d409d0be3d9042e9310647ed17528ebf (patch)
tree8e8da40234763c4a904d525b88248a65bf34bfcc /unit/test-hog.c
parentce6ca33eda78a3bb5ec80b657e5e4f98e0785003 (diff)
downloadbluez-c47a1de1d409d0be3d9042e9310647ed17528ebf.tar.gz
unit/test-hog: Add TC/HGRF/RH/BV-06-I test
Verify that all Report Reference characteristic descriptors for all Report characteristic of Report Type: Output Report can be read by a Report Host IUT.
Diffstat (limited to 'unit/test-hog.c')
-rw-r--r--unit/test-hog.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/unit/test-hog.c b/unit/test-hog.c
index 63657abf7..ddc202c51 100644
--- a/unit/test-hog.c
+++ b/unit/test-hog.c
@@ -328,5 +328,38 @@ int main(int argc, char *argv[])
raw_pdu(0x0a, 0x08, 0x00),
raw_pdu(0x0b, 0x01, 0x11, 0x00, 0x01));
+ define_test("/TP/HGRF/RH/BV-06-I", test_hog,
+ raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
+ raw_pdu(0x11, 0x06, 0x01, 0x00, 0x05, 0x00, 0x12,
+ 0x18, 0x06, 0x00, 0x0a, 0x00, 0x12, 0x18),
+ raw_pdu(0x10, 0x0b, 0x00, 0xff, 0xff, 0x00, 0x28),
+ raw_pdu(0x01, 0x10, 0x0b, 0x00, 0x0a),
+ raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x03, 0x28),
+ raw_pdu(0x09, 0x07, 0x03, 0x00, 0x0a, 0x04, 0x00,
+ 0x4d, 0x2a),
+ raw_pdu(0x08, 0x01, 0x00, 0x05, 0x00, 0x02, 0x28),
+ raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a),
+ raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x02, 0x28),
+ raw_pdu(0x01, 0x08, 0x06, 0x00, 0x0a),
+ raw_pdu(0x08, 0x06, 0x00, 0x0a, 0x00, 0x03, 0x28),
+ raw_pdu(0x09, 0x07, 0x08, 0x00, 0x0a, 0x09, 0x00,
+ 0x4d, 0x2a),
+ raw_pdu(0x08, 0x04, 0x00, 0x05, 0x00, 0x03, 0x28),
+ raw_pdu(0x01, 0x08, 0x05, 0x00, 0x0a),
+ raw_pdu(0x08, 0x09, 0x00, 0x0a, 0x00, 0x03, 0x28),
+ raw_pdu(0x01, 0x08, 0x09, 0x00, 0x0a),
+ raw_pdu(0x0a, 0x04, 0x00),
+ raw_pdu(0x0b, 0xee, 0xee, 0xff, 0xff),
+ raw_pdu(0x04, 0x05, 0x00, 0x05, 0x00),
+ raw_pdu(0x05, 0x01, 0x05, 0x00, 0x08, 0x29),
+ raw_pdu(0x0a, 0x09, 0x00),
+ raw_pdu(0x0b, 0xff, 0xff, 0xee, 0xee),
+ raw_pdu(0x04, 0x0a, 0x00, 0x0a, 0x00),
+ raw_pdu(0x05, 0x01, 0x0a, 0x00, 0x08, 0x29),
+ raw_pdu(0x0a, 0x05, 0x00),
+ raw_pdu(0x0b, 0x01, 0x02),
+ raw_pdu(0x0a, 0x0a, 0x00),
+ raw_pdu(0x0b, 0x02, 0x02));
+
return tester_run();
}