Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: webrtc/pc/rtptransport_unittest.cc

Issue 2981013002: Introduce RtpTransportInternal and SrtpTransport. (Closed)
Patch Set: Depend on test:test_support for gmock. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/pc/rtptransport.cc ('k') | webrtc/pc/rtptransportinternal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « webrtc/pc/rtptransport.cc ('k') | webrtc/pc/rtptransportinternal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698