From 09180d411b1a6490d94845b43bea0e22cb7e9c38 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Wed, 21 Sep 2022 13:05:13 +0000 Subject: [PATCH] reduce number of iterations in test, as it takes too long --- media/video/libvpx/variance_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/video/libvpx/variance_test.cc b/media/video/libvpx/variance_test.cc index 2ea74a7b..12fdf162 100644 --- a/media/video/libvpx/variance_test.cc +++ b/media/video/libvpx/variance_test.cc @@ -184,7 +184,7 @@ class SumOfSquaresTest : public ::testing::TestWithParam { void SumOfSquaresTest::ConstTest() { int16_t mem[256]; unsigned int res; - for (int v = 0; v < 20; ++v) { + for (int v = 0; v < 5; ++v) { for (int i = 0; i < 256; ++i) { mem[i] = v; } @@ -195,7 +195,7 @@ void SumOfSquaresTest::ConstTest() { void SumOfSquaresTest::RefTest() { int16_t mem[256]; - for (int i = 0; i < 20; ++i) { + for (int i = 0; i < 5; ++i) { for (int j = 0; j < 256; ++j) { mem[j] = rnd_.Rand8() - rnd_.Rand8(); } -- 2.30.2