Skip to content
Snippets Groups Projects
Commit 91a77805 authored by Mohamed Fenjiro's avatar Mohamed Fenjiro Committed by Adrien Béraud
Browse files

audio_frame_resizer: fixed unitTest

fixed getFormat

fixed testCase evaluating the sample of the queue

Change-Id: Id6ddb3ee90e674776bec53cfa81e984d47db3ef9
parent 3aa08a59
Branches
No related tags found
No related merge requests found
......@@ -122,9 +122,9 @@ AudioFrameResizerTest::testDifferentFormat()
{
// frame format != q_->format_
q_.reset(new AudioFrameResizer(format_, outputSize_, [this](std::shared_ptr<AudioFrame>&& f){ gotFrame(std::move(f)); }));
auto in = getFrame(960);
// XXX this should never be done, but use this as a shortcut for this test case
in->pointer()->channels = 1;
auto in = getFrame(outputSize_-27);
q_->enqueue(std::move(in));
CPPUNIT_ASSERT(q_->samples()==outputSize_-27);
q_->setFormat(AudioFormat::MONO(), 960);
CPPUNIT_ASSERT(q_->samples() == 0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment