OSDN Git Service

Distingiush between validated and unvalidated channels open
authorZach Johnson <zachoverflow@google.com>
Tue, 3 Mar 2020 18:55:08 +0000 (10:55 -0800)
committerZach Johnson <zachoverflow@google.com>
Tue, 3 Mar 2020 22:32:20 +0000 (14:32 -0800)
commit2d54a2887c853424ba586b81e19582cce88b4ab4
treed7eca7235f500a1da24ec53776ff55fd4cf12a7e
parentf0a6b1d8432896fb9c9e362495ba2c3b4bf45713
Distingiush between validated and unvalidated channels open

Since the common case is a validated channel, push the response
validation into _open_channel so we don't need to repeat it
in the test function.

Create _open_unvalidated_channel, so tests that need to do
custom validation off the common path can do so.

Test: cert/run --host --test_filter=L2capTest
Change-Id: Ic4c7d74109c23486e0862b7eca38f62cb8469228
gd/l2cap/classic/cert/l2cap_test.py