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

Unified Diff: webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc

Issue 1365043002: Set RtcpSender transport at construction. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Cleanup Created 5 years, 3 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
Index: webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc
diff --git a/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc b/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc
index 5b43f0092b63995e44a871ffbbb4b273c3cb26d8..f0d2a779ee9c0fee58dbdef84e817dddfbb142ba 100644
--- a/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc
+++ b/webrtc/modules/rtp_rtcp/test/testAPI/test_api.cc
@@ -90,6 +90,7 @@ class RtpRtcpAPITest : public ::testing::Test {
RtpRtcp::Configuration configuration;
configuration.audio = true;
configuration.clock = &fake_clock_;
+ configuration.outgoing_transport = &null_transport_;
module_.reset(RtpRtcp::CreateRtpRtcp(configuration));
rtp_payload_registry_.reset(new RTPPayloadRegistry(
RTPPayloadStrategy::CreateStrategy(true)));
@@ -105,6 +106,14 @@ class RtpRtcpAPITest : public ::testing::Test {
uint16_t test_sequence_number_;
std::vector<uint32_t> test_csrcs_;
SimulatedClock fake_clock_;
+ class NullTransport : public Transport {
+ public:
+ NullTransport() {}
+ virtual ~NullTransport() {}
+
+ int SendPacket(const void* data, size_t len) override { return 0; }
+ int SendRTCPPacket(const void* data, size_t len) override { return 0; }
+ } null_transport_;
};
TEST_F(RtpRtcpAPITest, Basic) {

Powered by Google App Engine
This is Rietveld 408576698