src/media/audio/audio_core/mixer/test/mixer_response_tests.cc
// Given result and limit arrays, compare as SINAD results (greater-or-equal, without additional
// tolerance). If 'summary_only', limit evaluation to the three basic frequencies.
Given result and limit arrays, compare as SINAD results (greater-or-equal, without additional
tolerance). If 'summary_only', limit evaluation to the three basic frequencies.
Given result and limit arrays compare as SINAD results ( greater - or - equal without additional tolerance ) . If ' summary_only ' limit evaluation to the three basic frequencies .
void EvaluateSinadResults(double* sinad_results, const double* sinad_limits,
                          bool summary_only = false) {
  bool use_full_set = (!summary_only) && FrequencySet::UseFullFrequencySet;
  const auto first_idx = use_full_set ? FrequencySet::kFirstInBandRefFreqIdx : 0u;
  const auto last_idx =
      use_full_set ? FrequencySet::kFirstOutBandRefFreqIdx : FrequencySet::kSummaryIdxs.size();
  for (auto idx = first_idx; idx < last_idx; ++idx) {
    uint32_t freq = use_full_set ? idx : FrequencySet::kSummaryIdxs[idx];
    EXPECT_GE(sinad_results[freq], sinad_limits[freq])
        << " [" << freq << "]  " << std::scientific << std::setprecision(9) << sinad_results[freq];
  }
}
void EvaluateSinadResults ( double * sinad_results , const double * sinad_limits , bool summary_only = false ) { bool use_full_set = ( ! summary_only ) && FrequencySet :: UseFullFrequencySet ; const auto first_idx = use_full_set ? FrequencySet :: kFirstInBandRefFreqIdx : 0u ; const auto last_idx = use_full_set ? FrequencySet :: kFirstOutBandRefFreqIdx : FrequencySet :: kSummaryIdxs . size ( ) ; for ( auto idx = first_idx ; idx < last_idx ; ++ idx ) { uint32_t freq = use_full_set ? idx : FrequencySet :: kSummaryIdxs [ idx ] ; EXPECT_GE ( sinad_results [ freq ] , sinad_limits [ freq ] ) << " " << freq << " " << std :: scientific << std :: setprecision ( 9 ) << sinad_results [ freq ] ; } }
Given result and limit arrays, compare as SINAD results (greater-or-equal, without additional
tolerance).
Given result and limit arrays compare as SINAD results ( greater - or - equal without additional tolerance ) .