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

Unified Diff: webrtc/sdk/objc/Framework/UnitTests/objc_video_encoder_factory_tests.mm

Issue 3001183002: Make a friendlier RTCVideoCodecInfo initializer. (Closed)
Patch Set: Rebase 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 | « webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/objc/Framework/UnitTests/objc_video_encoder_factory_tests.mm
diff --git a/webrtc/sdk/objc/Framework/UnitTests/objc_video_encoder_factory_tests.mm b/webrtc/sdk/objc/Framework/UnitTests/objc_video_encoder_factory_tests.mm
index d5941e7abee233d25a50ba71e612560d2042bd0f..ed29bc2658daeb09f19fcdf7f0e2fa92d085a6e5 100644
--- a/webrtc/sdk/objc/Framework/UnitTests/objc_video_encoder_factory_tests.mm
+++ b/webrtc/sdk/objc/Framework/UnitTests/objc_video_encoder_factory_tests.mm
@@ -32,8 +32,7 @@ id<RTCVideoEncoderFactory> CreateEncoderFactoryReturning(int return_code) {
OCMStub([encoderMock setBitrate:0 framerate:0]).andReturn(return_code);
id encoderFactoryMock = OCMProtocolMock(@protocol(RTCVideoEncoderFactory));
- RTCVideoCodecInfo *supported =
- [[RTCVideoCodecInfo alloc] initWithPayload:0 name:@"H264" parameters:@{}];
+ RTCVideoCodecInfo *supported = [[RTCVideoCodecInfo alloc] initWithName:@"H264" parameters:nil];
OCMStub([encoderFactoryMock supportedCodecs]).andReturn(@[ supported ]);
OCMStub([encoderFactoryMock createEncoder:[OCMArg any]]).andReturn(encoderMock);
return encoderFactoryMock;
« no previous file with comments | « webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698