Lines Matching refs:router
20 namespace pw::router { namespace
62 StaticRouter router(parser, std::span(routes)); in TEST() local
64 EXPECT_EQ(router.RoutePacket(BasicPacket(1, 0xdddd).data()), OkStatus()); in TEST()
65 EXPECT_EQ(router.RoutePacket(BasicPacket(2, 0xdddd).data()), in TEST()
72 StaticRouter router(parser, std::span(routes)); in TEST() local
76 EXPECT_EQ(router.RoutePacket(bad_magic.data()), Status::DataLoss()); in TEST()
82 StaticRouter router(parser, std::span(routes)); in TEST() local
84 EXPECT_EQ(router.RoutePacket(BasicPacket(42, 0xdddd).data()), in TEST()
91 StaticRouter router(parser, std::span(routes)); in TEST() local
94 EXPECT_EQ(router.RoutePacket(BasicPacket(1, 0xdddd).data()), OkStatus()); in TEST()
97 EXPECT_EQ(router.RoutePacket(BasicPacket(2, 0xdddd).data()), in TEST()
103 EXPECT_EQ(router.RoutePacket(bad_magic.data()), Status::DataLoss()); 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()
112 EXPECT_EQ(router.dropped_packets(), 3u); in TEST()