Add AudioDecoderFactory to NetEqTest constructor.

Update EventLogAnalyzer to not depend on builtin audio decoders.

Bug: webrtc:8396, webrtc:10080
Change-Id: Ie02ed9cda6d4f11bfdf2e65eb6482283b7520738
Reviewed-on: https://webrtc-review.googlesource.com/c/114301
Reviewed-by: Alex Loiko <aleloi@webrtc.org>
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26026}
This commit is contained in:
Niels Möller
2018-12-17 09:33:55 +01:00
committed by Commit Bot
parent f693bfae5f
commit daa970f33e
11 changed files with 54 additions and 38 deletions

View File

@ -1726,8 +1726,9 @@ TEST(NetEqNoTimeStretchingMode, RunTest) {
new TimeLimitedNetEqInput(std::move(input), 20000));
std::unique_ptr<AudioSink> output(new VoidAudioSink);
NetEqTest::Callbacks callbacks;
NetEqTest test(config, codecs, ext_codecs, nullptr,
std::move(input_time_limit), std::move(output), callbacks);
NetEqTest test(config, CreateBuiltinAudioDecoderFactory(), codecs, ext_codecs,
nullptr, std::move(input_time_limit), std::move(output),
callbacks);
test.Run();
const auto stats = test.SimulationStats();
EXPECT_EQ(0, stats.accelerate_rate);