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

Commit d5b627fa authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "mock: Use proper tBT_TRANSPORT" into main

parents b9e1f3ed 3349ebec
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;