Lines Matching refs:packet
29 auto packet = TestPacket::Make( in TEST() local
33 auto new_packet = TestPacket::Make(packet); in TEST()
44 auto packet = TestPacket::Make(test_avctp_data); in TEST() local
45 ASSERT_EQ(packet->size(), test_avctp_data.size()); in TEST()
47 packet = TestPacket::Make(test_avctp_data, test_avctp_data_payload_offset, in TEST()
49 ASSERT_EQ(packet->size(), test_avrcp_data.size()); in TEST()
54 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local
56 ASSERT_EQ(test_l2cap_data[i], (*packet)[i]); in TEST()
59 packet = TestPacket::Make(test_avctp_data, test_avctp_data_payload_offset, in TEST()
62 ASSERT_EQ(test_avrcp_data[i], (*packet)[i]); in TEST()
68 auto packet = in TEST() local
70 ASSERT_DEATH((*packet)[test_l2cap_data.size()], ""); in TEST()
75 auto packet = TestPacket::Make( in TEST() local
79 auto it = packet->begin(); in TEST()
80 for (size_t i = 0; i < packet->size(); i++) { in TEST()
81 ASSERT_EQ((*packet)[i], *it++); in TEST()
85 ASSERT_EQ(it, packet->end()); in TEST()
97 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local
100 Packet::Specialize<ChildTestPacket>(packet); in TEST()
106 ASSERT_EQ(&specialized_packet->GetData(), &packet->GetData()); in TEST()
112 auto packet = TestPacket::Make(test_l2cap_data); in TEST() local
113 std::weak_ptr<std::vector<uint8_t>> data_ptr(packet->GetDataPointer()); in TEST()
117 packet.reset(); in TEST()