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

Unified Diff: webrtc/test/fake_videorenderer.h

Issue 2361803003: Add logging statements to places where the frame might be dropped in WebRTC pipeline. (Closed)
Patch Set: Remove the DCHECK since it will crash anyway. 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/test/fake_videorenderer.h
diff --git a/webrtc/modules/audio_coding/neteq/tools/audio_sink.cc b/webrtc/test/fake_videorenderer.h
similarity index 57%
copy from webrtc/modules/audio_coding/neteq/tools/audio_sink.cc
copy to webrtc/test/fake_videorenderer.h
index fb848bdbd9b53e62af0c2a8cfb7fb3668a8e75c5..ff43fc09e475a03dcd1ff9dcef8b934dd03e105d 100644
--- a/webrtc/modules/audio_coding/neteq/tools/audio_sink.cc
+++ b/webrtc/test/fake_videorenderer.h
@@ -8,14 +8,21 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/modules/audio_coding/neteq/tools/audio_sink.h"
+#ifndef WEBRTC_TEST_FAKE_VIDEORENDERER_H_
+#define WEBRTC_TEST_FAKE_VIDEORENDERER_H_
+
+#include "webrtc/media/base/videosinkinterface.h"
+#include "webrtc/video_frame.h"
namespace webrtc {
namespace test {
-bool AudioSinkFork::WriteArray(const int16_t* audio, size_t num_samples) {
- return left_sink_->WriteArray(audio, num_samples) &&
- right_sink_->WriteArray(audio, num_samples);
-}
+class FakeVideoRenderer : public rtc::VideoSinkInterface<webrtc::VideoFrame> {
+ public:
+ void OnFrame(const webrtc::VideoFrame& frame) override {}
+};
+
} // namespace test
} // namespace webrtc
+
+#endif // WEBRTC_TEST_FAKE_VIDEORENDERER_H_

Powered by Google App Engine
This is Rietveld 408576698