Increase the tolerance in NetEq's DelayManagerTest a notch
This change is to make the test pass on Samsung devices. BUG=4426 R=kjellander@webrtc.org Review URL: https://webrtc-codereview.appspot.com/52449004 Cr-Commit-Position: refs/heads/master@{#9172}
This commit is contained in:
parent
67c9df7982
commit
cb3e8fe492
@ -88,8 +88,8 @@ TEST_F(DelayManagerTest, VectorInitialization) {
|
||||
const DelayManager::IATVector& vec = dm_->iat_vector();
|
||||
double sum = 0.0;
|
||||
for (size_t i = 0; i < vec.size(); i++) {
|
||||
EXPECT_NEAR(ldexp(pow(0.5, static_cast<int>(i + 1)), 30), vec[i], 65536);
|
||||
// Tolerance 65536 in Q30 corresponds to a delta of approximately 0.00006.
|
||||
EXPECT_NEAR(ldexp(pow(0.5, static_cast<int>(i + 1)), 30), vec[i], 65537);
|
||||
// Tolerance 65537 in Q30 corresponds to a delta of approximately 0.00006.
|
||||
sum += vec[i];
|
||||
}
|
||||
EXPECT_EQ(1 << 30, static_cast<int>(sum)); // Should be 1 in Q30.
|
||||
|
Loading…
x
Reference in New Issue
Block a user