Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3349ebec authored by Chris Manton's avatar Chris Manton
Browse files

mock: Use proper tBT_TRANSPORT

Bug: 354216286
Test: m .
Flag: EXEMPT, Test infrastructure

Change-Id: I6bd09175c83476681d11908ed33335d918dfbfa2
parent cbe01434
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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
@@ -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;