#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <limits>
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/opus/src/include/opus.h"
#define REGENERATE_REFERENCES …
namespace {
constexpr int RETRIES = …;
constexpr int MAX_FRAME_SAMP = …;
base::FilePath GetDataPath(const std::string& filename) { … }
void opus_run(int frame_size_ms,
int sampling_khz,
int channels,
int bit_rate,
int complexity,
size_t audio_duration_sec,
float* encoding_rtf,
float* decoding_rtf) { … }
}
TEST(OpusBenchmark, SpeechMono48kHzNexus5) { … }