Home
last modified time | relevance | path

Searched refs:BasicPacket (Results 1 – 3 of 3) sorted by relevance

/external/pigweed/pw_router/
Dstatic_router_test.cc23 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/
Dstatic_router_with_one_route.cc24 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()
Dbase.cc22 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()