OSDN Git Service

unit/AVDTP: Add /TP/SIG/SMG/BI-11-C test
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sun, 1 Dec 2013 15:33:22 +0000 (17:33 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 5 Dec 2013 10:36:03 +0000 (12:36 +0200)
Verify that the IUT (ACP) is able to issue a get configuration reject
response to the INT.

unit/test-avdtp.c

index 8aee50c..2f02326 100644 (file)
@@ -802,6 +802,17 @@ int main(int argc, char *argv[])
                        raw_pdu(0x32, 0x03),
                        raw_pdu(0x40, 0x04, 0x04),
                        raw_pdu(0x43, 0x04, 0x12));
+       define_test("/TP/SIG/SMG/BI-11-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, 0x04, 0x00),
+                       raw_pdu(0x33, 0x04, 0x12));
 
        return g_test_run();
 }