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

Unified Diff: content/renderer/media/gpu/rtc_video_encoder_unittest.cc

Issue 2985263002: Reland of RTCVideoEncoder: Report H264 profile information to WebRTC (Closed)
Patch Set: Add default argument to SetDefaultVideoCodec Created 3 years, 4 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 | « content/renderer/media/gpu/rtc_video_encoder_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/gpu/rtc_video_encoder_unittest.cc
diff --git a/content/renderer/media/gpu/rtc_video_encoder_unittest.cc b/content/renderer/media/gpu/rtc_video_encoder_unittest.cc
index 3fd7a91b3ac29dee1c74381b4dda3cf36aff5060..889b024926c8d2c757ede21bac6462005c396927 100644
--- a/content/renderer/media/gpu/rtc_video_encoder_unittest.cc
+++ b/content/renderer/media/gpu/rtc_video_encoder_unittest.cc
@@ -113,7 +113,19 @@ class RTCVideoEncoderTest
void CreateEncoder(webrtc::VideoCodecType codec_type) {
DVLOG(3) << __func__;
- rtc_encoder_ = base::MakeUnique<RTCVideoEncoder>(codec_type,
+ media::VideoCodecProfile media_profile;
+ switch (codec_type) {
+ case webrtc::kVideoCodecVP8:
+ media_profile = media::VP8PROFILE_ANY;
+ break;
+ case webrtc::kVideoCodecH264:
+ media_profile = media::H264PROFILE_BASELINE;
+ break;
+ default:
+ ADD_FAILURE() << "Unexpected codec type: " << codec_type;
+ media_profile = media::VIDEO_CODEC_PROFILE_UNKNOWN;
+ }
+ rtc_encoder_ = base::MakeUnique<RTCVideoEncoder>(media_profile,
mock_gpu_factories_.get());
}
« no previous file with comments | « content/renderer/media/gpu/rtc_video_encoder_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698