src/media/audio/audio_core/mixer/test/mixer_response_tests.cc
// Measure level response and noise floor for 1kHz sine from float source.
Measure level response and noise floor for 1kHz sine from float source.
Measure level response and noise floor for 1kHz sine from float source .
TEST(NoiseFloor, Source_Float) {
  AudioResult::LevelSourceFloat =
      MeasureSourceNoiseFloor<ASF::FLOAT>(&AudioResult::FloorSourceFloat);
  EXPECT_NEAR(AudioResult::LevelSourceFloat, 0.0, AudioResult::kPrevLevelToleranceSourceFloat);
  AudioResult::LevelToleranceSourceFloat =
      fmax(AudioResult::LevelToleranceSourceFloat, abs(AudioResult::LevelSourceFloat));
  EXPECT_GE(AudioResult::FloorSourceFloat, AudioResult::kPrevFloorSourceFloat)
      << std::setprecision(10) << AudioResult::FloorSourceFloat;
}
TEST ( NoiseFloor , Source_Float ) { AudioResult :: LevelSourceFloat = MeasureSourceNoiseFloor < ASF :: FLOAT > ( & AudioResult :: FloorSourceFloat ) ; EXPECT_NEAR ( AudioResult :: LevelSourceFloat , 0.0 , AudioResult :: kPrevLevelToleranceSourceFloat ) ; AudioResult :: LevelToleranceSourceFloat = fmax ( AudioResult :: LevelToleranceSourceFloat , abs ( AudioResult :: LevelSourceFloat ) ) ; EXPECT_GE ( AudioResult :: FloorSourceFloat , AudioResult :: kPrevFloorSourceFloat ) << std :: setprecision ( 10 ) << AudioResult :: FloorSourceFloat ; }
Measure level response and noise floor for 1kHz sine from float source.
Measure level response and noise floor for 1kHz sine from float source .