Searched refs:ConsumeData (Results 1 – 5 of 5) sorted by relevance
/system/connectivity/shill/net/ |
D | netlink_packet_unittest.cc | 60 EXPECT_FALSE(empty_packet.ConsumeData(1, &payload_byte)); in TEST_F() 78 EXPECT_TRUE(complete_packet.ConsumeData(1, &payload_byte)); in TEST_F() 80 EXPECT_FALSE(complete_packet.ConsumeData(1, &payload_byte)); in TEST_F() 83 TEST_F(NetlinkPacketTest, ConsumeData) { in TEST_F() argument 117 EXPECT_TRUE(packet.ConsumeData(2, &string_piece)); in TEST_F() 122 EXPECT_TRUE(packet.ConsumeData(8, &string_piece)); in TEST_F() 127 EXPECT_TRUE(packet.ConsumeData(3, &string_piece)); in TEST_F() 132 EXPECT_FALSE(packet.ConsumeData(7, &string_piece)); in TEST_F() 137 EXPECT_TRUE(packet.ConsumeData(6, &string_piece)); in TEST_F()
|
D | netlink_packet.h | 69 bool ConsumeData(size_t len, void* data);
|
D | netlink_packet.cc | 80 bool NetlinkPacket::ConsumeData(size_t len, void* data) { in ConsumeData() function in shill::NetlinkPacket
|
D | generic_netlink_message.cc | 85 if (!packet->ConsumeData(sizeof(gnlh), &gnlh)) { in InitAndStripHeader()
|
D | netlink_message.cc | 183 return packet->ConsumeData(sizeof(error_), &error_); in InitFromPacket()
|