voice_engine/test/auto_test/standard/mixing_test.cc
TEST_F(MixingTest, VerifySaturationProtection) {
  const int16_t kInputValue = 20000;
  const int16_t kExpectedOutput = kLimiterHeadroom;
  // If this isn't satisfied, we're not testing anything.
  ASSERT_GT(kInputValue * 3, kInt16Max);
  ASSERT_LT(1.1 * kExpectedOutput, kInt16Max);
  RunMixingTest(3, 0, 3, false, kInputValue, 1.1 * kExpectedOutput,
               0.9 * kExpectedOutput, kCodecL16);
}
// Ensure the mixing saturation protection is working. We can do this because
// the mixing limiter is given some headroom, so the expected output is less
// than full scale.
Ensure the mixing saturation protection is working. We can do this because
the mixing limiter is given some headroom, so the expected output is less
than full scale.
Ensure the mixing saturation protection is working . We can do this because the mixing limiter is given some headroom so the expected output is less than full scale .
TEST_F(MixingTest, VerifySaturationProtection) {
  const int16_t kInputValue = 20000;
  const int16_t kExpectedOutput = kLimiterHeadroom;
  ASSERT_GT(kInputValue * 3, kInt16Max);
  ASSERT_LT(1.1 * kExpectedOutput, kInt16Max);
  RunMixingTest(3, 0, 3, false, kInputValue, 1.1 * kExpectedOutput,
               0.9 * kExpectedOutput, kCodecL16);
}
TEST_F ( MixingTest , VerifySaturationProtection ) { const int16_t kInputValue = 20000 ; const int16_t kExpectedOutput = kLimiterHeadroom ; ASSERT_GT ( kInputValue * 3 , kInt16Max ) ; ASSERT_LT ( 1.1 * kExpectedOutput , kInt16Max ) ; RunMixingTest ( 3 , 0 , 3 , false , kInputValue , 1.1 * kExpectedOutput , 0.9 * kExpectedOutput , kCodecL16 ) ; }
Ensure the mixing saturation protection is working.
Ensure the mixing saturation protection is working .
// If this isn't satisfied, we're not testing anything.