Lines Matching refs:EventPacket
32 EventPacket::kHeaderSizeBytes,
409 const EventPacket packet(0u, ConstByteSpan()); in TEST_F()
412 packet.Encode({packet_buffer_.data(), EventPacket::kHeaderSizeBytes - 1}); in TEST_F()
417 EXPECT_FALSE(EventPacket::Decode( in TEST_F()
418 {packet_buffer_.data(), EventPacket::kHeaderSizeBytes - 1}) in TEST_F()
425 const EventPacket packet(kEventCode, ConstByteSpan()); in TEST_F()
427 EXPECT_EQ(packet.size_bytes(), EventPacket::kHeaderSizeBytes); in TEST_F()
434 constexpr std::array<const std::byte, EventPacket::kHeaderSizeBytes> in TEST_F()
441 std::optional<EventPacket> possible_packet = in TEST_F()
442 EventPacket::Decode(encoded_packet); in TEST_F()
444 EventPacket& decoded_packet = possible_packet.value(); in TEST_F()
446 EXPECT_EQ(decoded_packet.size_bytes(), EventPacket::kHeaderSizeBytes); in TEST_F()
451 possible_packet = EventPacket::Decode({packet_buffer_}); in TEST_F()
455 EXPECT_EQ(decoded_packet.size_bytes(), EventPacket::kHeaderSizeBytes); in TEST_F()
465 const EventPacket packet(kEventCode, kParameters); in TEST_F()
468 EventPacket::kHeaderSizeBytes + kArbitraryMaxPayloadSizeBytes); in TEST_F()
476 EventPacket::kHeaderSizeBytes + in TEST_F()
484 std::optional<EventPacket> possible_packet = in TEST_F()
485 EventPacket::Decode(encoded_packet); in TEST_F()
487 EventPacket& decoded_packet = possible_packet.value(); in TEST_F()
490 EventPacket::kHeaderSizeBytes + kArbitraryMaxPayloadSizeBytes); in TEST_F()
496 possible_packet = EventPacket::Decode({packet_buffer_}); in TEST_F()
501 EventPacket::kHeaderSizeBytes + kArbitraryMaxPayloadSizeBytes); in TEST_F()