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

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

Issue 2303273002: Expose Ivf logging through the native API (Closed)
Patch Set: Use platform specific stuff from base 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
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.h ('k') | webrtc/modules/video_coding/utility/ivf_file_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/engine/fakewebrtccall.cc
diff --git a/webrtc/media/engine/fakewebrtccall.cc b/webrtc/media/engine/fakewebrtccall.cc
index cb904df66fdcf1275bf722ddb6220968bd0bd8ab..9ef1117894d84db0b83745b7738bff3fb09f379a 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/platform_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::EnableEncodedFrameRecording(
+ const std::vector<rtc::PlatformFile>& files,
+ size_t byte_limit) {
+ for (rtc::PlatformFile file : files) {
stefan-webrtc 2016/09/28 09:15:57 Remove {}
+ rtc::ClosePlatformFile(file);
+ }
+}
+
void FakeVideoSendStream::ReconfigureVideoEncoder(
webrtc::VideoEncoderConfig config) {
if (config.encoder_specific_settings != NULL) {
@@ -249,6 +258,11 @@ void FakeVideoReceiveStream::SetStats(
stats_ = stats;
}
+void FakeVideoReceiveStream::EnableEncodedFrameRecording(rtc::PlatformFile file,
+ size_t byte_limit) {
+ rtc::ClosePlatformFile(file);
+}
+
FakeCall::FakeCall(const webrtc::Call::Config& config)
: config_(config),
audio_network_state_(webrtc::kNetworkUp),
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.h ('k') | webrtc/modules/video_coding/utility/ivf_file_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698