pc/rtptransport_unittest.cc
// Test that SignalPacketReceived fires with rtcp=false when a RTP packet with a
// handled payload type is received.
Test that SignalPacketReceived fires with rtcp=false when a RTP packet with a
handled payload type is received.
Test that SignalPacketReceived fires with rtcp = false when a RTP packet with a handled payload type is received .
TEST(RtpTransportTest, SignalHandledRtpPayloadType) {
  RtpTransport transport(kMuxDisabled);
  SignalPacketReceivedCounter observer(&transport);
  rtc::FakePacketTransport fake_rtp("fake_rtp");
  fake_rtp.SetDestination(&fake_rtp, true);
  transport.SetRtpPacketTransport(&fake_rtp);
  transport.AddHandledPayloadType(0x11);
  const rtc::PacketOptions options;
  const int flags = 0;
  rtc::Buffer rtp_data(kRtpData, kRtpLen);
  fake_rtp.SendPacket(rtp_data.data<char>(), kRtpLen, options, flags);
  EXPECT_EQ(1, observer.rtp_count());
  EXPECT_EQ(0, observer.rtcp_count());
}
TEST ( RtpTransportTest , SignalHandledRtpPayloadType ) { RtpTransport transport ( kMuxDisabled ) ; SignalPacketReceivedCounter observer ( & transport ) ; rtc :: FakePacketTransport fake_rtp ( " " ) ; fake_rtp . SetDestination ( & fake_rtp , true ) ; transport . SetRtpPacketTransport ( & fake_rtp ) ; transport . AddHandledPayloadType ( 0x11 ) ; const rtc :: PacketOptions options ; const int flags = 0 ; rtc :: Buffer rtp_data ( kRtpData , kRtpLen ) ; fake_rtp . SendPacket ( rtp_data . data < char > ( ) , kRtpLen , options , flags ) ; EXPECT_EQ ( 1 , observer . rtp_count ( ) ) ; EXPECT_EQ ( 0 , observer . rtcp_count ( ) ) ; }
Test that SignalPacketReceived fires with rtcp=false when a RTP packet with a
handled payload type is received.
Test that SignalPacketReceived fires with rtcp = false when a RTP packet with a handled payload type is received .
// An rtp packet.