Chromium Code Reviews

Unified Diff: webrtc/examples/objc/AppRTCMobile/tests/ARDAppClientTest.mm

Issue 2520933002: iOS AppRTCMobile: Fix SDP video codec reordering for multiple H264 profiles (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: webrtc/examples/objc/AppRTCMobile/tests/ARDAppClientTest.mm
diff --git a/webrtc/examples/objc/AppRTCMobile/tests/ARDAppClientTest.mm b/webrtc/examples/objc/AppRTCMobile/tests/ARDAppClientTest.mm
index 20a5cf481ea26ef318c838b80002696fbb5ebeca..049828337f974fdcd649dcbf9f3f6fdd960c885d 100644
--- a/webrtc/examples/objc/AppRTCMobile/tests/ARDAppClientTest.mm
+++ b/webrtc/examples/objc/AppRTCMobile/tests/ARDAppClientTest.mm
@@ -360,10 +360,12 @@ static NSInteger kARDAppClientTestsExpectationTimeoutError = 100;
@implementation ARDSDPUtilsTest
daniela-webrtc 2016/11/21 16:23:00 Perhaps few more tests can be added. For instance
magjed_webrtc 2016/11/22 14:40:24 Done, I added some more tests.
- (void)testPreferVideoCodec {
- NSString *sdp = @("m=video 9 RTP/SAVPF 100 116 117 96 120\n"
- "a=rtpmap:120 H264/90000\n");
- NSString *expectedSdp = @("m=video 9 RTP/SAVPF 120 100 116 117 96\n"
- "a=rtpmap:120 H264/90000\n");
+ NSString *sdp = @("m=video 9 RTP/SAVPF 100 116 117 96 120 97\n"
+ "a=rtpmap:120 H264/90000\n"
+ "a=rtpmap:97 H264/90000\n");
+ NSString *expectedSdp = @("m=video 9 RTP/SAVPF 120 97 100 116 117 96\n"
+ "a=rtpmap:120 H264/90000\n"
+ "a=rtpmap:97 H264/90000\n");
RTCSessionDescription* desc =
[[RTCSessionDescription alloc] initWithType:RTCSdpTypeOffer sdp:sdp];
RTCSessionDescription *h264Desc =

Powered by Google App Engine