Migrated GN target :neteq_opus_quality_test

Migrated GN target :neteq_opus_quality_test from
webrtc/modules/audio_coding/neteq/neteq_tests.gypi

NOTRY=True

BUG=webrtc:6190, webrtc:2692

Review-Url: https://codereview.webrtc.org/2223933004
Cr-Commit-Position: refs/heads/master@{#13701}
This commit is contained in:
aleloi
2016-08-10 02:11:30 -07:00
committed by Commit bot
parent 74811e5fa3
commit 630c6d58d3
3 changed files with 27 additions and 1 deletions

View File

@ -1377,4 +1377,27 @@ if (rtc_include_tests) {
configs -= [ "//build/config/clang:find_bad_constructs" ]
}
}
executable("neteq_opus_quality_test") {
testonly = true
sources = [
"neteq/test/neteq_opus_quality_test.cc",
]
deps = [
":neteq",
":neteq_test_support",
":webrtc_opus",
"../../test:test_support_main",
"//testing/gtest",
"//third_party/gflags",
]
if (is_clang) {
# Suppress warnings from the Chromium Clang plugins
# (bugs.webrtc.org/163).
configs -= [ "//build/config/clang:find_bad_constructs" ]
}
}
}

View File

@ -276,6 +276,8 @@ GilbertElliotLoss::GilbertElliotLoss(double prob_trans_11, double prob_trans_01)
uniform_loss_model_(new UniformLoss(0)) {
}
GilbertElliotLoss::~GilbertElliotLoss() {}
bool GilbertElliotLoss::Lost() {
// Simulate bursty channel (Gilbert model).
// (1st order) Markov chain model with memory of the previous/last

View File

@ -51,6 +51,7 @@ class UniformLoss : public LossModel {
class GilbertElliotLoss : public LossModel {
public:
GilbertElliotLoss(double prob_trans_11, double prob_trans_01);
~GilbertElliotLoss() override;
bool Lost() override;
private:
@ -68,7 +69,7 @@ class NetEqQualityTest : public ::testing::Test {
int in_sampling_khz,
int out_sampling_khz,
NetEqDecoder decoder_type);
virtual ~NetEqQualityTest();
~NetEqQualityTest() override;
void SetUp() override;