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

Unified Diff: webrtc/pc/channelmanager_unittest.cc

Issue 2353033005: Refactoring: move ownership of RtcEventLog from Call to PeerConnection (Closed)
Patch Set: Moved the constructor Created 4 years, 2 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/DEPS ('k') | webrtc/test/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/channelmanager_unittest.cc
diff --git a/webrtc/pc/channelmanager_unittest.cc b/webrtc/pc/channelmanager_unittest.cc
index e4e243c8b516d151c2d661988b284ee34f909965..0beb940c89ad5227cd9ed377294f3bc2fa005ef2 100644
--- a/webrtc/pc/channelmanager_unittest.cc
+++ b/webrtc/pc/channelmanager_unittest.cc
@@ -12,6 +12,7 @@
#include "webrtc/base/gunit.h"
#include "webrtc/base/logging.h"
#include "webrtc/base/thread.h"
+#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
#include "webrtc/media/base/fakemediaengine.h"
#include "webrtc/media/base/fakevideocapturer.h"
#include "webrtc/media/base/testutils.h"
@@ -35,10 +36,8 @@ class ChannelManagerTest : public testing::Test {
ChannelManagerTest()
: fme_(new cricket::FakeMediaEngine()),
fdme_(new cricket::FakeDataEngine()),
- cm_(new cricket::ChannelManager(fme_,
- fdme_,
- rtc::Thread::Current())),
- fake_call_(webrtc::Call::Config()),
+ cm_(new cricket::ChannelManager(fme_, fdme_, rtc::Thread::Current())),
+ fake_call_(webrtc::Call::Config(&event_log_)),
fake_mc_(cm_, &fake_call_),
transport_controller_(
new cricket::FakeTransportController(ICEROLE_CONTROLLING)) {}
@@ -56,6 +55,7 @@ class ChannelManagerTest : public testing::Test {
fme_ = NULL;
}
+ webrtc::RtcEventLogNullImpl event_log_;
rtc::Thread network_;
rtc::Thread worker_;
cricket::FakeMediaEngine* fme_;
« no previous file with comments | « webrtc/pc/DEPS ('k') | webrtc/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698