Searched refs:BasicPacket (Results 1 – 3 of 3) sorted by relevance
/external/pigweed/pw_router/ |
D | static_router_test.cc | 23 struct BasicPacket { struct 26 constexpr BasicPacket(uint32_t addr, uint64_t data) in BasicPacket() argument 41 packet_ = reinterpret_cast<const BasicPacket*>(packet.data()); in Parse() 42 return packet_->magic == BasicPacket::kMagic; in Parse() 51 const BasicPacket* packet_; 64 EXPECT_EQ(router.RoutePacket(BasicPacket(1, 0xdddd).data()), OkStatus()); in TEST() 65 EXPECT_EQ(router.RoutePacket(BasicPacket(2, 0xdddd).data()), in TEST() 74 BasicPacket bad_magic(1, 0xdddd); in TEST() 84 EXPECT_EQ(router.RoutePacket(BasicPacket(42, 0xdddd).data()), in TEST() 94 EXPECT_EQ(router.RoutePacket(BasicPacket(1, 0xdddd).data()), OkStatus()); in TEST() [all …]
|
/external/pigweed/pw_router/size_report/ |
D | static_router_with_one_route.cc | 24 struct BasicPacket { struct 27 constexpr BasicPacket(uint32_t addr, uint64_t data) in BasicPacket() function 45 packet_ = reinterpret_cast<const BasicPacket*>(packet.data()); in Parse() 46 return packet_->magic == BasicPacket::kMagic; in Parse() 54 const BasicPacket* packet_; 70 BasicPacket packet(0x1, 0x2); in main() 71 PW_CHECK_UINT_EQ(packet.magic, BasicPacket::kMagic, "Some CHECK logic"); in main() 75 std::array<std::byte, sizeof(BasicPacket)> packet_buffer; in main()
|
D | base.cc | 22 struct BasicPacket { struct 25 constexpr BasicPacket(uint32_t addr, uint64_t data) in BasicPacket() function 39 BasicPacket packet(0x1, 0x2); in main() 40 PW_CHECK_UINT_EQ(packet.magic, BasicPacket::kMagic, "Some CHECK logic"); in main() 44 std::array<std::byte, sizeof(BasicPacket)> packet_buffer; in main()
|