Lines Matching refs:packet
112 NetlinkPacket packet(data, sizeof(data)); in TEST_F() local
113 EXPECT_EQ(22, packet.GetRemainingLength()); in TEST_F()
117 EXPECT_TRUE(packet.ConsumeData(2, &string_piece)); in TEST_F()
119 EXPECT_EQ(18, packet.GetRemainingLength()); in TEST_F()
122 EXPECT_TRUE(packet.ConsumeData(8, &string_piece)); in TEST_F()
124 EXPECT_EQ(10, packet.GetRemainingLength()); in TEST_F()
127 EXPECT_TRUE(packet.ConsumeData(3, &string_piece)); in TEST_F()
129 EXPECT_EQ(6, packet.GetRemainingLength()); in TEST_F()
132 EXPECT_FALSE(packet.ConsumeData(7, &string_piece)); in TEST_F()
133 EXPECT_EQ(6, packet.GetRemainingLength()); in TEST_F()
137 EXPECT_TRUE(packet.ConsumeData(6, &string_piece)); in TEST_F()
139 EXPECT_EQ(0, packet.GetRemainingLength()); in TEST_F()