Lines Matching refs:BasicPacket
23 struct BasicPacket { struct
26 constexpr BasicPacket(uint32_t addr, uint64_t data) in BasicPacket() function
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()
97 EXPECT_EQ(router.RoutePacket(BasicPacket(2, 0xdddd).data()), in TEST()
101 BasicPacket bad_magic(1, 0xdddd); in TEST()
106 EXPECT_EQ(router.RoutePacket(BasicPacket(1, 0xdddd).data()), OkStatus()); in TEST()
109 EXPECT_EQ(router.RoutePacket(BasicPacket(42, 0xdddd).data()), in TEST()