src/media/audio/audio_core/mixer/test/mixer_response_tests.cc
// Measure level response and noise floor for 1kHz sine, to a float output.
Measure level response and noise floor for 1kHz sine, to a float output.
Measure level response and noise floor for 1kHz sine to a float output .
TEST(NoiseFloor, Output_Float) {
  AudioResult::LevelOutputFloat =
      MeasureOutputNoiseFloor<ASF::FLOAT>(&AudioResult::FloorOutputFloat);
  EXPECT_NEAR(AudioResult::LevelOutputFloat, 0.0, AudioResult::kPrevLevelToleranceOutputFloat);
  AudioResult::LevelToleranceOutputFloat =
      fmax(AudioResult::LevelToleranceOutputFloat, abs(AudioResult::LevelOutputFloat));
  EXPECT_GE(AudioResult::FloorOutputFloat, AudioResult::kPrevFloorOutputFloat)
      << std::setprecision(10) << AudioResult::FloorOutputFloat;
}
TEST ( NoiseFloor , Output_Float ) { AudioResult :: LevelOutputFloat = MeasureOutputNoiseFloor < ASF :: FLOAT > ( & AudioResult :: FloorOutputFloat ) ; EXPECT_NEAR ( AudioResult :: LevelOutputFloat , 0.0 , AudioResult :: kPrevLevelToleranceOutputFloat ) ; AudioResult :: LevelToleranceOutputFloat = fmax ( AudioResult :: LevelToleranceOutputFloat , abs ( AudioResult :: LevelOutputFloat ) ) ; EXPECT_GE ( AudioResult :: FloorOutputFloat , AudioResult :: kPrevFloorOutputFloat ) << std :: setprecision ( 10 ) << AudioResult :: FloorOutputFloat ; }
Measure level response and noise floor for 1kHz sine, to a float output.
Measure level response and noise floor for 1kHz sine to a float output .