chromium/third_party/opus/tests/opus_benchmark.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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"

// Set to 1 to generate golden values instead of checking against them.
// Used to ease updating when new references are better or acceptable.
#define REGENERATE_REFERENCES

namespace {

constexpr int RETRIES =;
constexpr int MAX_FRAME_SAMP =;  // 120ms * 48kHz

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) {}
}  // namespace

TEST(OpusBenchmark, SpeechMono48kHzNexus5) {}