OSDN Git Service

TEST: Fix net_test_stock_rfcomm unit test
authorJack He <siyuanh@google.com>
Sun, 21 Apr 2019 00:01:53 +0000 (17:01 -0700)
committerJack He <siyuanh@google.com>
Sun, 21 Apr 2019 10:32:54 +0000 (10:32 +0000)
commit1b9c2af1fcadae4ccf623099bef750160a093423
tree4c64cde4ada96162f3b8f3483e7dd29f37fe0f00
parentc12e92e84e34e995da3b7d50b195577adb438789
TEST: Fix net_test_stock_rfcomm unit test

* Properly mock updated L2CAP registeration method by including the
  filtered btsnoop option
* Properly mock btsnoop module by creating a separate file to link with
  the test executable

Fixes: 123361801
Test: atest net_test_stack_rfcomm
Change-Id: I89ca875cbcc941feddd7c501fa1b7e14f8d14794
stack/Android.bp
stack/test/common/mock_btsnoop_module.cc [new file with mode: 0644]
stack/test/common/mock_l2cap_layer.cc
stack/test/common/mock_l2cap_layer.h
stack/test/rfcomm/stack_rfcomm_test.cc