// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cast/streaming/impl/packet_util.h" #include "gtest/gtest.h" #include "platform/base/span.h" namespace openscreen::cast { namespace { // Tests that a simple RTCP packet containing only a Sender Report can be // identified. TEST(PacketUtilTest, InspectsRtcpPacketFromSender) { … } // Tests that compound RTCP packets containing a Receiver Report and/or a Cast // Feedback message can be identified. TEST(PacketUtilTest, InspectsRtcpPacketFromReceiver) { … } // Tests that a RTP packet can be identified. TEST(PacketUtilTest, InspectsRtpPacket) { … } // Tests that a RTP packet with the "127 payload type" hack can be identified as // valid. See comments in rtp_defines.h for the RtpPayloadType enum definition, // for further details. TEST(PacketUtilTest, InspectsAndroidAudioRtpPacket) { … } // Tests that a malformed RTP packet can be identified. TEST(PacketUtilTest, InspectsMalformedRtpPacket) { … } // Tests that an empty packet is classified as unknown. TEST(PacketUtilTest, InspectsEmptyPacket) { … } // Tests that a packet with garbage is classified as unknown. TEST(PacketUtilTest, InspectsGarbagePacket) { … } } // namespace } // namespace openscreen::cast