Loading system/test/mock/mock_stack_l2cap_api.h +3 −1 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ #include "stack/include/bt_hdr.h" #include "stack/include/l2c_api.h" #include "types/bt_transport.h" #include "types/raw_address.h" // Mocked compile conditionals, if any Loading @@ -42,7 +43,8 @@ namespace stack_l2cap_api { // Params: uint16_t fixed_cid // Returns: tBT_TRANSPORT struct l2c_get_transport_from_fixed_cid { std::function<tBT_TRANSPORT(uint16_t fixed_cid)> body{[](uint16_t /* fixed_cid */) { return 0; }}; std::function<tBT_TRANSPORT(uint16_t fixed_cid)> body{ [](uint16_t /* fixed_cid */) { return BT_TRANSPORT_AUTO; }}; tBT_TRANSPORT operator()(uint16_t fixed_cid) { return body(fixed_cid); } }; extern struct l2c_get_transport_from_fixed_cid l2c_get_transport_from_fixed_cid; Loading Loading
system/test/mock/mock_stack_l2cap_api.h +3 −1 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ #include "stack/include/bt_hdr.h" #include "stack/include/l2c_api.h" #include "types/bt_transport.h" #include "types/raw_address.h" // Mocked compile conditionals, if any Loading @@ -42,7 +43,8 @@ namespace stack_l2cap_api { // Params: uint16_t fixed_cid // Returns: tBT_TRANSPORT struct l2c_get_transport_from_fixed_cid { std::function<tBT_TRANSPORT(uint16_t fixed_cid)> body{[](uint16_t /* fixed_cid */) { return 0; }}; std::function<tBT_TRANSPORT(uint16_t fixed_cid)> body{ [](uint16_t /* fixed_cid */) { return BT_TRANSPORT_AUTO; }}; tBT_TRANSPORT operator()(uint16_t fixed_cid) { return body(fixed_cid); } }; extern struct l2c_get_transport_from_fixed_cid l2c_get_transport_from_fixed_cid; Loading