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

Unified Diff: webrtc/api/webrtcsdp_unittest.cc

Issue 2493133002: Stop using hardcoded payload types for video codecs (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | webrtc/media/BUILD.gn » ('j') | webrtc/media/engine/payload_type_mapper_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/webrtcsdp_unittest.cc
diff --git a/webrtc/api/webrtcsdp_unittest.cc b/webrtc/api/webrtcsdp_unittest.cc
index 3c6643f2aac384dd2ac623b2a3ee7eef61abd9f9..7941323d973d264cad8b4c92adb573c129e94e4b 100644
--- a/webrtc/api/webrtcsdp_unittest.cc
+++ b/webrtc/api/webrtcsdp_unittest.cc
@@ -2083,11 +2083,12 @@ TEST_F(WebRtcSdpTest, SerializeTcpCandidates) {
}
TEST_F(WebRtcSdpTest, SerializeSessionDescriptionWithH264) {
- if (!webrtc::H264Encoder::IsSupported())
- return;
- for (const auto& codec : cricket::DefaultVideoCodecList()) {
- video_desc_->AddCodec(codec);
- }
+ cricket::VideoCodec h264_codec("H264");
hta-webrtc 2016/11/15 11:34:59 Does this compile & run if you're compiling withou
magjed_webrtc 2016/11/15 17:18:26 Yes, it doesn't use the actual encoder, it just se
+ h264_codec.SetParam("profile-level-id", "42e01f");
hta-webrtc 2016/11/15 11:34:59 Can you use the constructor and stringifier for pr
magjed_webrtc 2016/11/15 17:18:26 I can, but in the test we are checking: EXPECT_NE(
hta-webrtc 2016/11/15 20:36:24 Acknowledged.
+ h264_codec.SetParam("level-asymmetry-allowed", "1");
+ h264_codec.SetParam("packetization-mode", "1");
+ video_desc_->AddCodec(h264_codec);
stefan-webrtc 2016/11/15 09:00:08 Could you explain why this change is needed? Do I
magjed_webrtc 2016/11/15 17:18:26 This change is needed because cricket::DefaultVide
+
jdesc_.Initialize(desc_.Copy(), kSessionId, kSessionVersion);
std::string message = webrtc::SdpSerialize(jdesc_, false);
« no previous file with comments | « no previous file | webrtc/media/BUILD.gn » ('j') | webrtc/media/engine/payload_type_mapper_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698