| Index: webrtc/call/call_perf_tests.cc
|
| diff --git a/webrtc/call/call_perf_tests.cc b/webrtc/call/call_perf_tests.cc
|
| index a510483690e8aadb7e6c646ba365c4b23164f4f1..175b27da6c9955a9813c21bcc5c09285d0a67b20 100644
|
| --- a/webrtc/call/call_perf_tests.cc
|
| +++ b/webrtc/call/call_perf_tests.cc
|
| @@ -492,14 +492,13 @@ TEST_F(CallPerfTest, ReceivesCpuOveruseAndUnderuse) {
|
| // First expect CPU overuse. Then expect CPU underuse when the encoder
|
| // delay has been decreased.
|
| if (wants.target_pixel_count &&
|
| - *wants.target_pixel_count <
|
| - wants.max_pixel_count.value_or(std::numeric_limits<int>::max())) {
|
| + *wants.target_pixel_count < wants.max_pixel_count) {
|
| // On adapting up, ViEEncoder::VideoSourceProxy will set the target
|
| // pixel count to a step up from the current and the max value to
|
| // something higher than the target.
|
| EXPECT_FALSE(expect_lower_resolution_wants_);
|
| observation_complete_.Set();
|
| - } else if (wants.max_pixel_count) {
|
| + } else if (wants.max_pixel_count < std::numeric_limits<int>::max()) {
|
| // On adapting down, ViEEncoder::VideoSourceProxy will set only the max
|
| // pixel count, leaving the target unset.
|
| EXPECT_TRUE(expect_lower_resolution_wants_);
|
|
|