Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Sep 16, 2023
1 parent 31f571b commit 72eda03
Show file tree
Hide file tree
Showing 9 changed files with 29,528 additions and 636,760 deletions.
18 changes: 9 additions & 9 deletions src/test/enginemixertest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ TEST_F(EngineMixerTest, SingleChannelOutputWorks) {
.WillOnce(Return(false));
EXPECT_CALL(*pChannel, collectFeatures(_))
.Times(1);
EXPECT_CALL(*pChannel, postProcess(160000))
EXPECT_CALL(*pChannel, postProcess(MAX_BUFFER_LEN))
.Times(1);

// Instruct the mock to just return when process() gets called.
Expand Down Expand Up @@ -129,7 +129,7 @@ TEST_F(EngineMixerTest, SingleChannelPFLOutputWorks) {
.WillOnce(Return(true));
EXPECT_CALL(*pChannel, collectFeatures(_))
.Times(1);
EXPECT_CALL(*pChannel, postProcess(160000))
EXPECT_CALL(*pChannel, postProcess(MAX_BUFFER_LEN))
.Times(1);

// Instruct the mock to just return when process() gets called.
Expand Down Expand Up @@ -179,7 +179,7 @@ TEST_F(EngineMixerTest, TwoChannelOutputWorks) {
.WillOnce(Return(false));
EXPECT_CALL(*pChannel1, collectFeatures(_))
.Times(1);
EXPECT_CALL(*pChannel1, postProcess(160000))
EXPECT_CALL(*pChannel1, postProcess(MAX_BUFFER_LEN))
.Times(1);

// Instruct channel 2 to claim it is active, main and not PFL.
Expand All @@ -197,7 +197,7 @@ TEST_F(EngineMixerTest, TwoChannelOutputWorks) {
.WillOnce(Return(false));
EXPECT_CALL(*pChannel2, collectFeatures(_))
.Times(1);
EXPECT_CALL(*pChannel2, postProcess(160000))
EXPECT_CALL(*pChannel2, postProcess(MAX_BUFFER_LEN))
.Times(1);

// Instruct the mock to just return when process() gets called.
Expand Down Expand Up @@ -250,7 +250,7 @@ TEST_F(EngineMixerTest, TwoChannelPFLOutputWorks) {
.WillOnce(Return(true));
EXPECT_CALL(*pChannel1, collectFeatures(_))
.Times(1);
EXPECT_CALL(*pChannel1, postProcess(160000))
EXPECT_CALL(*pChannel1, postProcess(MAX_BUFFER_LEN))
.Times(1);

// Instruct channel 2 to claim it is active, main and PFL.
Expand All @@ -268,7 +268,7 @@ TEST_F(EngineMixerTest, TwoChannelPFLOutputWorks) {
.WillOnce(Return(true));
EXPECT_CALL(*pChannel2, collectFeatures(_))
.Times(1);
EXPECT_CALL(*pChannel2, postProcess(160000))
EXPECT_CALL(*pChannel2, postProcess(MAX_BUFFER_LEN))
.Times(1);

// Instruct the mock to just return when process() gets called.
Expand Down Expand Up @@ -326,7 +326,7 @@ TEST_F(EngineMixerTest, ThreeChannelOutputWorks) {
.WillOnce(Return(false));
EXPECT_CALL(*pChannel1, collectFeatures(_))
.Times(1);
EXPECT_CALL(*pChannel1, postProcess(160000))
EXPECT_CALL(*pChannel1, postProcess(MAX_BUFFER_LEN))
.Times(1);

// Instruct channel 2 to claim it is active, main and not PFL.
Expand All @@ -344,7 +344,7 @@ TEST_F(EngineMixerTest, ThreeChannelOutputWorks) {
.WillOnce(Return(false));
EXPECT_CALL(*pChannel2, collectFeatures(_))
.Times(1);
EXPECT_CALL(*pChannel2, postProcess(160000))
EXPECT_CALL(*pChannel2, postProcess(MAX_BUFFER_LEN))
.Times(1);

// Instruct channel 3 to claim it is active, main and not PFL.
Expand All @@ -362,7 +362,7 @@ TEST_F(EngineMixerTest, ThreeChannelOutputWorks) {
.WillOnce(Return(false));
EXPECT_CALL(*pChannel3, collectFeatures(_))
.Times(1);
EXPECT_CALL(*pChannel3, postProcess(160000))
EXPECT_CALL(*pChannel3, postProcess(MAX_BUFFER_LEN))
.Times(1);

// Instruct the mock to just return when process() gets called.
Expand Down
Loading

0 comments on commit 72eda03

Please sign in to comment.