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

Unified Diff: webrtc/media/engine/fakewebrtccall.cc

Issue 2303273002: Expose Ivf logging through the native API (Closed)
Patch Set: Fix memory leak Created 4 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/media/engine/fakewebrtccall.cc
diff --git a/webrtc/media/engine/fakewebrtccall.cc b/webrtc/media/engine/fakewebrtccall.cc
index cb904df66fdcf1275bf722ddb6220968bd0bd8ab..2e9d9a39e3673e8acdc05957568e3d944721006a 100644
--- a/webrtc/media/engine/fakewebrtccall.cc
+++ b/webrtc/media/engine/fakewebrtccall.cc
@@ -15,6 +15,7 @@
#include "webrtc/api/call/audio_sink.h"
#include "webrtc/base/checks.h"
+#include "webrtc/base/file.h"
#include "webrtc/base/gunit.h"
#include "webrtc/media/base/rtputils.h"
@@ -177,6 +178,14 @@ webrtc::VideoSendStream::Stats FakeVideoSendStream::GetStats() {
return stats_;
}
+void FakeVideoSendStream::SetLogFiles(rtc::PlatformFile file1,
+ rtc::PlatformFile file2,
+ rtc::PlatformFile file3) {
+ rtc::File(file1).Close();
+ rtc::File(file2).Close();
+ rtc::File(file3).Close();
+}
+
void FakeVideoSendStream::ReconfigureVideoEncoder(
webrtc::VideoEncoderConfig config) {
if (config.encoder_specific_settings != NULL) {
@@ -249,6 +258,10 @@ void FakeVideoReceiveStream::SetStats(
stats_ = stats;
}
+void FakeVideoReceiveStream::SetLogFile(rtc::PlatformFile file) {
+ rtc::File(file).Close();
+}
+
FakeCall::FakeCall(const webrtc::Call::Config& config)
: config_(config),
audio_network_state_(webrtc::kNetworkUp),

Powered by Google App Engine
This is Rietveld 408576698