chromium/media/base/sinc_resampler_perftest.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "base/cpu.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "media/base/sinc_resampler.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_result_reporter.h"

namespace media {

static const int kBenchmarkIterations =;

static const double kSampleRateRatio =;
static const double kKernelInterpolationFactor =;

static void RunConvolveBenchmark(float (*convolve_fn)(const int,
                                                      const float*,
                                                      const float*,
                                                      const float*,
                                                      double),
                                 bool aligned,
                                 const std::string& trace_name) {}

// Benchmark for the various Convolve() methods.  Make sure to build with
// branding=Chrome so that DCHECKs are compiled out when benchmarking.
TEST(SincResamplerPerfTest, Convolve_unoptimized_aligned) {}

TEST(SincResamplerPerfTest, Convolve_optimized_aligned) {}

TEST(SincResamplerPerfTest, Convolve_optimized_unaligned) {}

} // namespace media