Lines Matching refs:PacketView
26 using bluetooth::packet::PacketView;
71 using PacketViewTypes = ::testing::Types<PacketView<true>, PacketView<false>>;
87 using PacketViewTypes = ::testing::Types<PacketView<true>, PacketView<false>>;
95 const PacketView<true> single_view =
96 … PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size())});
97 const PacketView<true> multi_view = PacketView<true>({
109 class AppendedPacketView : public PacketView<true> {
111 AppendedPacketView(PacketView<true> first, std::forward_list<PacketView<true>> to_append) in AppendedPacketView()
112 : PacketView<true>(first) { in AppendedPacketView()
118 const PacketView<true> single_view =
119 … PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size())});
120 const PacketView<true> multi_view = AppendedPacketView(
121 PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_1), 0, count_1.size())}),
122 … {PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_2), 0, count_2.size())}),
123 … PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_3), 0, count_3.size())})});
133 …PacketView<true> packet({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.siz… in TEST()
147 …PacketView<false> packet({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.si… in TEST()
405 class SubPacketView : public PacketView<true> {
407 using PacketView<true>::PacketView;
408 PacketView<true> Slice(size_t header, size_t tail) { in Slice()
409 return PacketView<true>::GetLittleEndianSubview(header, tail); in Slice()
478 …PacketView<true> view({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size(… in TEST()
479 PacketView<true> sub_1_view = view.GetLittleEndianSubview(0, view.size()); in TEST()
480 PacketView<true> sub_2_view = sub_1_view.GetLittleEndianSubview(0, sub_1_view.size()); in TEST()
481 PacketView<true> sub_3_view = sub_2_view.GetLittleEndianSubview(0, sub_2_view.size()); in TEST()
482 PacketView<true> sub_4_view = sub_3_view.GetLittleEndianSubview(0, sub_3_view.size()); in TEST()
490 …PacketView<true> view({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size(… in TEST()
491 std::vector<PacketView<true>> sub_views{view}; in TEST()
501 …PacketView<true> single_view({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_al… in TEST()
502 PacketView<true> multi_view({ in TEST()
509 PacketView<true> sub_single_view = single_view.GetLittleEndianSubview(i, count_all.size() - i); in TEST()
510 PacketView<true> sub_multi_view = multi_view.GetLittleEndianSubview(i, count_all.size() - i); in TEST()
514 …PacketView<true> sub_sub_single_view = sub_single_view.GetLittleEndianSubview(j, sub_single_view.s… in TEST()
515 …PacketView<true> sub_sub_multi_view = sub_multi_view.GetLittleEndianSubview(j, sub_multi_view.size… in TEST()