OSDN Git Service

L2CAP: Add test for L2CAP 2/2 Support of configuration process
authorTed Wang <tedwang@google.com>
Mon, 24 Feb 2020 09:57:31 +0000 (17:57 +0800)
committerTed Wang <tedwang@google.com>
Mon, 9 Mar 2020 07:24:00 +0000 (15:24 +0800)
commit6fa984711e9f158bb73aed161778afe01d0e4d92
tree3d1b35f42328e2a705f0ba0621139194120cdb2d
parent29e683d2161937a15c9a0bf14606b41290e10f7e
L2CAP: Add test for L2CAP 2/2 Support of configuration process

* Add handle for configuration request with invalid mtu option.
  Negotiate with kDefaultClassicMtu.
* Add handle for configuration response with result unacceptable
  parameters. Negotiate with no options.

* Add test case in l2cap_test:
    test_continuation_flag [L2CAP/COS/CFD/BV-01-C]
    test_configuration_negotiation_with_reject
      [L2CAP/COS/CFD/BV-02-C]
    test_send_requested_options [L2CAP/COS/CFD/BV-03-C]
    test_configuration_negotiation_with_unsupported_paremeter
      [L2CAP/COS/CFD/BV-11-C]
    test_unknow_option_response [L2CAP/COS/CFD/BV-12-C]

Bug: 149962814
Test: run_cert_facade_only.sh
Change-Id: I48a026cc203af2aa9067908b8bc419bc14e509ce
gd/l2cap/classic/cert/l2cap_test.py
gd/l2cap/classic/internal/signalling_manager.cc