Home
last modified time | relevance | path

Searched refs:Consume (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Bluetooth/tools/rootcanal/test/
Dh4_parser_unittest.cc74 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/
Dh4_data_channel_packetizer.cc96 h4_parser_.Consume(buffer.data(), bytes_read); in OnDataReady()
Dh4_parser.h55 bool Consume(const uint8_t* buffer, int32_t bytes);
Dh4_parser.cc105 bool H4Parser::Consume(const uint8_t* buffer, int32_t bytes_read) { in Consume() function in rootcanal::H4Parser