Use designated initializers for webrtc::SimulcastStream

Style change extracted from
https://webrtc-review.googlesource.com/c/src/+/264800

Bug: webrtc:11607
Change-Id: I3dd5ca1eef8d70a61023af37d90032225e40b55d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/267841
Commit-Queue: Niels Moller <nisse@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37442}
This commit is contained in:
Niels Möller
2022-07-05 13:46:24 +02:00
committed by WebRTC LUCI CQ
parent 11fdb08282
commit 39b1b42487
2 changed files with 214 additions and 73 deletions

View File

@ -42,33 +42,33 @@ TEST(EncoderSimulcastProxy, ChoosesCorrectImplementation) {
"SimulcastEncoderAdapter (Fake, Fake, Fake)";
VideoCodec codec_settings;
webrtc::test::CodecSettings(kVideoCodecVP8, &codec_settings);
codec_settings.simulcastStream[0] = {test::kTestWidth,
test::kTestHeight,
test::kTestFrameRate,
2,
2000,
1000,
1000,
56,
true};
codec_settings.simulcastStream[1] = {test::kTestWidth,
test::kTestHeight,
test::kTestFrameRate,
2,
3000,
1000,
1000,
56,
true};
codec_settings.simulcastStream[2] = {test::kTestWidth,
test::kTestHeight,
test::kTestFrameRate,
2,
5000,
1000,
1000,
56,
true};
codec_settings.simulcastStream[0] = {.width = test::kTestWidth,
.height = test::kTestHeight,
.maxFramerate = test::kTestFrameRate,
.numberOfTemporalLayers = 2,
.maxBitrate = 2000,
.targetBitrate = 1000,
.minBitrate = 1000,
.qpMax = 56,
.active = true};
codec_settings.simulcastStream[1] = {.width = test::kTestWidth,
.height = test::kTestHeight,
.maxFramerate = test::kTestFrameRate,
.numberOfTemporalLayers = 2,
.maxBitrate = 3000,
.targetBitrate = 1000,
.minBitrate = 1000,
.qpMax = 56,
.active = true};
codec_settings.simulcastStream[2] = {.width = test::kTestWidth,
.height = test::kTestHeight,
.maxFramerate = test::kTestFrameRate,
.numberOfTemporalLayers = 2,
.maxBitrate = 5000,
.targetBitrate = 1000,
.minBitrate = 1000,
.qpMax = 56,
.active = true};
codec_settings.numberOfSimulcastStreams = 3;
auto mock_encoder = std::make_unique<NiceMock<MockVideoEncoder>>();