| Index: webrtc/pc/rtptransport_unittest.cc
|
| diff --git a/webrtc/pc/rtptransport_unittest.cc b/webrtc/pc/rtptransport_unittest.cc
|
| index 9b9e6cf37777bff5aa1a610aa2da4576248b6ee0..27c77abcb51578ba9fba51b0fd1363c19722ddd0 100644
|
| --- a/webrtc/pc/rtptransport_unittest.cc
|
| +++ b/webrtc/pc/rtptransport_unittest.cc
|
| @@ -12,6 +12,7 @@
|
|
|
| #include "webrtc/p2p/base/fakepackettransport.h"
|
| #include "webrtc/pc/rtptransport.h"
|
| +#include "webrtc/pc/rtptransporttestutil.h"
|
| #include "webrtc/rtc_base/gunit.h"
|
|
|
| namespace webrtc {
|
| @@ -151,29 +152,6 @@ TEST(RtpTransportTest, ChangingReadyToSendStateOnlySignalsWhenChanged) {
|
| EXPECT_EQ(observer.count(), 2);
|
| }
|
|
|
| -class SignalPacketReceivedCounter : public sigslot::has_slots<> {
|
| - public:
|
| - explicit SignalPacketReceivedCounter(RtpTransport* transport) {
|
| - transport->SignalPacketReceived.connect(
|
| - this, &SignalPacketReceivedCounter::OnPacketReceived);
|
| - }
|
| - int rtcp_count() const { return rtcp_count_; }
|
| - int rtp_count() const { return rtp_count_; }
|
| -
|
| - private:
|
| - void OnPacketReceived(bool rtcp,
|
| - rtc::CopyOnWriteBuffer*,
|
| - const rtc::PacketTime&) {
|
| - if (rtcp) {
|
| - ++rtcp_count_;
|
| - } else {
|
| - ++rtp_count_;
|
| - }
|
| - }
|
| - int rtcp_count_ = 0;
|
| - int rtp_count_ = 0;
|
| -};
|
| -
|
| // Test that SignalPacketReceived fires with rtcp=true when a RTCP packet is
|
| // received.
|
| TEST(RtpTransportTest, SignalDemuxedRtcp) {
|
|
|