Use DoubleEq() instead of Eq().

Bug: None
Change-Id: Ib79f268856edb472f63525336c7d5d67b996f8e7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/290570
Auto-Submit: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Reviewed-by: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39012}
This commit is contained in:
Mirko Bonadei 2023-01-04 22:51:03 +01:00 committed by WebRTC LUCI CQ
parent 73ca7e08e5
commit 46ca3f6092

View File

@ -27,6 +27,7 @@ namespace webrtc {
namespace {
using ::testing::Contains;
using ::testing::DoubleEq;
using ::testing::Each;
using ::testing::Eq;
using ::testing::IsEmpty;
@ -155,7 +156,7 @@ void ExpectSizeAndAllElementsAre(const SamplesStatsCounter& counter,
int size,
double value) {
EXPECT_EQ(counter.NumSamples(), size);
EXPECT_THAT(counter.GetSamples(), Each(Eq(value)));
EXPECT_THAT(counter.GetSamples(), Each(DoubleEq(value)));
}
TEST(DefaultVideoQualityAnalyzerFramesComparatorTest,