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

Unified Diff: webrtc/test/call_test.cc

Issue 2806723002: Event log cleanup in tests. (Closed)
Patch Set: . Created 3 years, 8 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/test/call_test.h ('k') | webrtc/video/end_to_end_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/call_test.cc
diff --git a/webrtc/test/call_test.cc b/webrtc/test/call_test.cc
index 244b79b5c37ed4b072af999f3f7e31da35faacca..5c60895d394ec5e94b08f456393cec48105ce4ce 100644
--- a/webrtc/test/call_test.cc
+++ b/webrtc/test/call_test.cc
@@ -51,6 +51,7 @@ PacketReceiver::DeliveryStatus CallTest::PayloadDemuxer::DeliverPacket(
CallTest::CallTest()
: clock_(Clock::GetRealTimeClock()),
+ event_log_(RtcEventLog::CreateNull()),
video_send_config_(nullptr),
video_send_stream_(nullptr),
audio_send_config_(nullptr),
@@ -461,10 +462,10 @@ const uint32_t CallTest::kReceiverLocalVideoSsrc = 0x123456;
const uint32_t CallTest::kReceiverLocalAudioSsrc = 0x1234567;
const int CallTest::kNackRtpHistoryMs = 1000;
-BaseTest::BaseTest() {}
+BaseTest::BaseTest() : event_log_(RtcEventLog::CreateNull()) {}
-BaseTest::BaseTest(unsigned int timeout_ms) : RtpRtcpObserver(timeout_ms) {
-}
+BaseTest::BaseTest(unsigned int timeout_ms)
+ : RtpRtcpObserver(timeout_ms), event_log_(RtcEventLog::CreateNull()) {}
BaseTest::~BaseTest() {
}
@@ -482,11 +483,11 @@ void BaseTest::OnFakeAudioDevicesCreated(FakeAudioDevice* send_audio_device,
}
Call::Config BaseTest::GetSenderCallConfig() {
- return Call::Config(&event_log_);
+ return Call::Config(event_log_.get());
}
Call::Config BaseTest::GetReceiverCallConfig() {
- return Call::Config(&event_log_);
+ return Call::Config(event_log_.get());
}
void BaseTest::OnCallsCreated(Call* sender_call, Call* receiver_call) {
« no previous file with comments | « webrtc/test/call_test.h ('k') | webrtc/video/end_to_end_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698