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

Commit 720b5faa authored by Myles Watson's avatar Myles Watson
Browse files

PDL: Add example test packets

Bug: 182216573
Test: atest libbt_packets_test
Tag: #gd-refactor
Change-Id: I40975081d5d30f7078a432df94b9d0c58410da97
parent c826cabc
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1601,10 +1601,19 @@ packet SetEventMaskComplete : CommandComplete (command_op_code = SET_EVENT_MASK)
packet Reset : Command (op_code = RESET) {
}

test Reset {
  "\x03\x0c\x00",
}

packet ResetComplete : CommandComplete (command_op_code = RESET) {
  status : ErrorCode,
}

test ResetComplete {
  "\x0e\x04\x01\x03\x0c\x00",
  "\x0e\x04\x01\x03\x0c\x01", // unknown command
}

enum FilterType : 8 {
  CLEAR_ALL_FILTERS = 0x00,
  INQUIRY_RESULT = 0x01,