#include "modules/audio_processing/test/bitexactness_tools.h"
#include <math.h>
#include <algorithm>
#include <string>
#include <vector>
#include "api/array_view.h"
#include "test/testsupport/file_utils.h"
namespace webrtc {
namespace test {
std::string GetApmRenderTestVectorFileName(int sample_rate_hz) { … }
std::string GetApmCaptureTestVectorFileName(int sample_rate_hz) { … }
void ReadFloatSamplesFromStereoFile(size_t samples_per_channel,
size_t num_channels,
InputAudioFile* stereo_pcm_file,
rtc::ArrayView<float> data) { … }
::testing::AssertionResult VerifyDeinterleavedArray(
size_t samples_per_channel,
size_t num_channels,
rtc::ArrayView<const float> reference,
rtc::ArrayView<const float> output,
float element_error_bound) { … }
::testing::AssertionResult VerifyArray(rtc::ArrayView<const float> reference,
rtc::ArrayView<const float> output,
float element_error_bound) { … }
}
}