Home
last modified time | relevance | path

Searched refs:ConsumeData (Results 1 – 5 of 5) sorted by relevance

/system/connectivity/shill/net/
Dnetlink_packet_unittest.cc60 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()
Dnetlink_packet.h69 bool ConsumeData(size_t len, void* data);
Dnetlink_packet.cc80 bool NetlinkPacket::ConsumeData(size_t len, void* data) { in ConsumeData() function in shill::NetlinkPacket
Dgeneric_netlink_message.cc85 if (!packet->ConsumeData(sizeof(gnlh), &gnlh)) { in InitAndStripHeader()
Dnetlink_message.cc183 return packet->ConsumeData(sizeof(error_), &error_); in InitFromPacket()