Commit 41b69354 authored by Hirokazu Honda's avatar Hirokazu Honda Committed by Commit Bot

media/gpu/vea_tests: Set longer event timeout in DynamicFramerate/BitrateChange test

DynamicFramerate/BitrateChange test cases encodes 600 frames and
also validates them. It takes too time that it times out on low
end devices. This resolves the failures by setting longer event
time out.

Bug: b:170790027
Test: video_encode_accelerator_tests crowd-3840x2160 --codec=vp8
Change-Id: I2add724637a42175123a64bb5aeb426a03d8528a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2470285Reviewed-by: default avatarDavid Staessens <dstaessens@chromium.org>
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821107}
parent 1c9a88f2
......@@ -313,6 +313,9 @@ TEST_F(VideoEncoderTest, DynamicBitrateChange) {
auto config = GetDefaultConfig();
config.num_frames_to_encode = kNumFramesToEncodeForBitrateCheck * 2;
auto encoder = CreateVideoEncoder(g_env->Video(), config);
// Set longer event timeout than the default (30 sec) because encoding 2160p
// and validating the stream take much time.
encoder->SetEventWaitTimeout(base::TimeDelta::FromSeconds(180));
// Encode the video with the first bitrate.
const uint32_t first_bitrate = config.bitrate;
......@@ -341,6 +344,9 @@ TEST_F(VideoEncoderTest, DynamicFramerateChange) {
auto config = GetDefaultConfig();
config.num_frames_to_encode = kNumFramesToEncodeForBitrateCheck * 2;
auto encoder = CreateVideoEncoder(g_env->Video(), config);
// Set longer event timeout than the default (30 sec) because encoding 2160p
// and validating the stream take much time.
encoder->SetEventWaitTimeout(base::TimeDelta::FromSeconds(180));
// Encode the video with the first framerate.
const uint32_t first_framerate = config.framerate;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment