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) { |