Searched refs:Consume (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Bluetooth/tools/rootcanal/test/ |
D | h4_parser_unittest.cc | 74 ASSERT_TRUE(parser_.Consume(&typ, 1)); in TEST_F() 82 ASSERT_TRUE(parser_.Consume(&typ, 1)); in TEST_F() 86 ASSERT_TRUE(parser_.Consume(&typ, 1)); in TEST_F() 94 ASSERT_TRUE(parser_.Consume(&typ, 1)); in TEST_F() 105 ASSERT_FALSE(parser_.Consume(bad_bit.data(), bad_bit.size())); in TEST_F() 110 ASSERT_DEATH(parser_.Consume(bad_bit.data(), parser_.BytesRequested() + 1), in TEST_F() 117 ASSERT_DEATH(parser_.Consume(bad_bit.data(), bad_bit.size()), in TEST_F() 129 ASSERT_TRUE(parser_.Consume(&typ, 1)); in TEST_F() 137 ASSERT_TRUE(parser_.Consume(data.data(), data.size())); in TEST_F() 153 ASSERT_TRUE(parser_.Consume(&invalid_packet_type, 1)); in TEST_F() [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/model/hci/ |
D | h4_data_channel_packetizer.cc | 96 h4_parser_.Consume(buffer.data(), bytes_read); in OnDataReady()
|
D | h4_parser.h | 55 bool Consume(const uint8_t* buffer, int32_t bytes);
|
D | h4_parser.cc | 105 bool H4Parser::Consume(const uint8_t* buffer, int32_t bytes_read) { in Consume() function in rootcanal::H4Parser
|