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

Unified Diff: webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_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
Index: webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm
diff --git a/webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm b/webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm
index c7b1b5fb760a8b6fae2bfe6c93dd21168b273156..3b1eb0571b3df8786989720c1033eb2ba55859bf 100644
--- a/webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm
+++ b/webrtc/sdk/objc/Framework/UnitTests/objc_video_decoder_factory_tests.mm
@@ -33,8 +33,7 @@ id<RTCVideoDecoderFactory> CreateDecoderFactoryReturning(int return_code) {
OCMStub([decoderMock releaseDecoder]).andReturn(return_code);
id decoderFactoryMock = OCMProtocolMock(@protocol(RTCVideoDecoderFactory));
- RTCVideoCodecInfo *supported =
- [[RTCVideoCodecInfo alloc] initWithPayload:0 name:@"H264" parameters:@{}];
+ RTCVideoCodecInfo *supported = [[RTCVideoCodecInfo alloc] initWithName:@"H264" parameters:nil];
OCMStub([decoderFactoryMock supportedCodecs]).andReturn(@[ supported ]);
OCMStub([decoderFactoryMock createDecoder:[OCMArg any]]).andReturn(decoderMock);
return decoderFactoryMock;

Powered by Google App Engine
This is Rietveld 408576698