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

Unified Diff: content/renderer/media/webrtc/media_stream_video_webrtc_sink.h

Issue 2393923002: Add unit tests for webrtc_media_stream_adapter.cc (Closed)
Patch Set: Completed tests for denoising constraint 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
Index: content/renderer/media/webrtc/media_stream_video_webrtc_sink.h
diff --git a/content/renderer/media/webrtc/media_stream_video_webrtc_sink.h b/content/renderer/media/webrtc/media_stream_video_webrtc_sink.h
index fdd6233d4a39ff9dc6c7771d265ac03afc4b79d2..a4a48b38ece280a250cc68ee00baf19cd903f420 100644
--- a/content/renderer/media/webrtc/media_stream_video_webrtc_sink.h
+++ b/content/renderer/media/webrtc/media_stream_video_webrtc_sink.h
@@ -27,7 +27,7 @@ class PeerConnectionDependencyFactory;
// to an RTCPeerConnection object.
// Instances of this class is owned by the WebRtcMediaStreamAdapter object that
// created it.
-class MediaStreamVideoWebRtcSink : public MediaStreamVideoSink {
+class CONTENT_EXPORT MediaStreamVideoWebRtcSink : public MediaStreamVideoSink {
public:
MediaStreamVideoWebRtcSink(const blink::WebMediaStreamTrack& track,
PeerConnectionDependencyFactory* factory);
@@ -37,6 +37,9 @@ class MediaStreamVideoWebRtcSink : public MediaStreamVideoSink {
return video_track_.get();
}
+ // Exposed for testing.
+ rtc::Optional<bool> SourceNeedsDenoising();
tommi (sloooow) - chröme 2016/10/10 09:53:35 SourceNeedsDenoisingForTesting() Should it also b
hta - Chromium 2016/10/10 13:15:02 I don't like having derived classes as the impleme
tommi (sloooow) - chröme 2016/10/10 13:33:37 The convention is to have the suffix "ForTesting",
mcasas 2016/10/10 15:58:22 On that: "Functions used only for testing should
hta - Chromium 2016/10/10 18:59:01 Ack - if the "ForTesting suffix is magical, it mak
tommi (sloooow) - chröme 2016/10/10 19:10:36 That's OK with me. Just to clarify my comment, th
+
protected:
// Implementation of MediaStreamSink.
void OnEnabledChanged(bool enabled) override;

Powered by Google App Engine
This is Rietveld 408576698