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

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

Issue 2859223003: WebRtcVideoEncoderFactory cleanup (Closed)
Patch Set: Created 3 years, 7 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/webrtcvideoencoderfactory.cc ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/engine/webrtcvideoencoderfactory_unittest.cc
diff --git a/webrtc/media/engine/webrtcvideoencoderfactory_unittest.cc b/webrtc/media/engine/webrtcvideoencoderfactory_unittest.cc
index 967c33b3d2ae4e025f5b23e57cdcee6d8b3ce013..5d3c9abefecb49626352a4b6ad52b45db68ec3fa 100644
--- a/webrtc/media/engine/webrtcvideoencoderfactory_unittest.cc
+++ b/webrtc/media/engine/webrtcvideoencoderfactory_unittest.cc
@@ -16,15 +16,22 @@ class WebRtcVideoEncoderFactoryForTest
: public cricket::WebRtcVideoEncoderFactory {
public:
WebRtcVideoEncoderFactoryForTest() {
- codecs_.push_back(VideoCodec(webrtc::kVideoCodecH264, "H264"));
- codecs_.push_back(VideoCodec(webrtc::kVideoCodecVP8, "VP8"));
+ codecs_.push_back(cricket::VideoCodec("H264"));
+ codecs_.push_back(cricket::VideoCodec("VP8"));
}
- const std::vector<VideoCodec>& codecs() const override { return codecs_; }
+ webrtc::VideoEncoder* CreateVideoEncoder(
+ const cricket::VideoCodec& codec) override {
+ return nullptr;
+ }
+
+ const std::vector<cricket::VideoCodec>& supported_codecs() const override {
+ return codecs_;
+ }
void DestroyVideoEncoder(webrtc::VideoEncoder* encoder) override {}
- std::vector<VideoCodec> codecs_;
+ std::vector<cricket::VideoCodec> codecs_;
};
TEST(WebRtcVideoEncoderFactoryTest, TestMultipleCallsToSupportedCodecs) {
« no previous file with comments | « webrtc/media/engine/webrtcvideoencoderfactory.cc ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698