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

Commit e5e83a3a authored by johnshamoon's avatar johnshamoon Committed by android-build-merger
Browse files

test_vendor: Add L2cap and L2capSdu assemble tests am: b045f948 am: a458312c am: 73d030a5

am: b9d01206

Change-Id: Idfb90a9b9b2e8f62246e1ffe18244de9b7cf72a1
parents 36b5496a b9d01206
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -57,6 +57,8 @@ cc_test_host {
        "test/async_manager_unittest.cc",
        "test/bt_address_unittest.cc",
        "test/packet_stream_unittest.cc",
        "test/l2cap_test.cc",
        "test/l2cap_sdu_test.cc",
    ],
    local_include_dirs: [
        "include",
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ class L2capPacket {

  // Construct a vector of just the L2CAP payload. This essentially
  // will remove the L2CAP header from the private member variable.
  // TODO: Remove this in favor of custom iterators.
  std::vector<uint8_t> get_l2cap_payload() const;

  uint16_t get_l2cap_cid() const;
+3 −0
Original line number Diff line number Diff line
@@ -62,6 +62,9 @@ class L2capSdu {
  // Returns a completed L2capSdu object.
  L2capSdu(std::vector<uint8_t> create_from);

  // Adds an FCS to create_from and returns an L2capSdu object
  static L2capSdu L2capSduBuilder(std::vector<uint8_t> create_from);

  // Get a vector iterator that points to the first byte of the
  // L2CAP payload within an SDU. The offset parameter will be the
  // number of bytes that are in the SDU header. This should always
Loading