summaryrefslogtreecommitdiff
path: root/unit/test-hog.c
diff options
context:
space:
mode:
authorMariusz Skamra <mariusz.skamra@tieto.com>2015-03-16 16:38:57 +0100
committerSzymon Janc <szymon.janc@tieto.com>2015-03-17 12:52:16 +0100
commit63aa1eb25478ab7ac5ccb2a7c0fbb221d4f9bc18 (patch)
tree855fe7c7821063e52671b9fc1bfd4d6cab361db5 /unit/test-hog.c
parent79064663dc61d4b6894968ae29152ac43232faa2 (diff)
downloadbluez-63aa1eb25478ab7ac5ccb2a7c0fbb221d4f9bc18.tar.gz
unit/test-hog: Add TC/HGCF/RH/BV-01-I test
Verify that all CCC characteristic descriptors for all Report characteristics of Report Type: Input Report can be written with the value 0x0001 by a Report Host IUT.
Diffstat (limited to 'unit/test-hog.c')
-rw-r--r--unit/test-hog.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/unit/test-hog.c b/unit/test-hog.c
index 85dcff76f..2a25d095e 100644
--- a/unit/test-hog.c
+++ b/unit/test-hog.c
@@ -361,6 +361,49 @@ int main(int argc, char *argv[])
raw_pdu(0x0a, 0x0a, 0x00),
raw_pdu(0x0b, 0x02, 0x02));
+ define_test("/TP/HGCF/RH/BV-01-I", test_hog,
+ raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
+ raw_pdu(0x11, 0x06, 0x01, 0x00, 0x06, 0x00, 0x12,
+ 0x18, 0x07, 0x00, 0x0c, 0x00, 0x12, 0x18),
+ raw_pdu(0x10, 0x0d, 0x00, 0xff, 0xff, 0x00, 0x28),
+ raw_pdu(0x01, 0x10, 0x0d, 0x00, 0x0a),
+ raw_pdu(0x08, 0x01, 0x00, 0x06, 0x00, 0x03, 0x28),
+ raw_pdu(0x09, 0x07, 0x03, 0x00, 0x1a, 0x04, 0x00,
+ 0x4d, 0x2a),
+ raw_pdu(0x08, 0x01, 0x00, 0x06, 0x00, 0x02, 0x28),
+ raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a),
+ raw_pdu(0x08, 0x07, 0x00, 0x0c, 0x00, 0x02, 0x28),
+ raw_pdu(0x01, 0x08, 0x07, 0x00, 0x0a),
+ raw_pdu(0x08, 0x07, 0x00, 0x0c, 0x00, 0x03, 0x28),
+ raw_pdu(0x09, 0x07, 0x09, 0x00, 0x1a, 0x0a, 0x00,
+ 0x4d, 0x2a),
+ raw_pdu(0x08, 0x04, 0x00, 0x06, 0x00, 0x03, 0x28),
+ raw_pdu(0x01, 0x08, 0x04, 0x00, 0x0a),
+ raw_pdu(0x08, 0x0a, 0x00, 0x0c, 0x00, 0x03, 0x28),
+ raw_pdu(0x01, 0x08, 0x0a, 0x00, 0x0a),
+ raw_pdu(0x0a, 0x04, 0x00),
+ raw_pdu(0x0b, 0xed, 0x00),
+ raw_pdu(0x04, 0x05, 0x00, 0x06, 0x00),
+ raw_pdu(0x05, 0x01, 0x05, 0x00, 0x02, 0x29,
+ 0x06, 0x00, 0x08, 0x29),
+ raw_pdu(0x0a, 0x0a, 0x00),
+ raw_pdu(0x0b, 0xed, 0x00),
+ raw_pdu(0x04, 0x0b, 0x00, 0x0c, 0x00),
+ raw_pdu(0x05, 0x01, 0x0b, 0x00, 0x02, 0x29,
+ 0x0c, 0x00, 0x08, 0x29),
+ raw_pdu(0x0a, 0x06, 0x00),
+ raw_pdu(0x0b, 0x01, 0x01),
+ raw_pdu(0x0a, 0x0c, 0x00),
+ raw_pdu(0x0b, 0x02, 0x01),
+ raw_pdu(0x0a, 0x05, 0x00),
+ raw_pdu(0x0b, 0x00, 0x00),
+ raw_pdu(0x0a, 0x0b, 0x00),
+ raw_pdu(0x0b, 0x00, 0x00),
+ raw_pdu(0x12, 0x05, 0x00, 0x01, 0x00),
+ raw_pdu(0x13),
+ raw_pdu(0x12, 0x0b, 0x00, 0x01, 0x00),
+ raw_pdu(0x13));
+
define_test("/TP/HGRF/RH/BV-02-I", test_hog,
raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x00, 0x28),
raw_pdu(0x11, 0x06, 0x01, 0x00, 0x05, 0x00, 0x12,