#include "media/base/audio_bus.h"
#include <stdint.h>
#include <memory>
#include "base/containers/heap_array.h"
#include "base/time/time.h"
#include "media/base/audio_sample_types.h"
#include "media/base/fake_audio_render_callback.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_result_reporter.h"
namespace {
perf_test::PerfResultReporter SetUpReporter(const std::string& story_name) { … }
}
namespace media {
static const int kBenchmarkIterations = …;
static const int kSampleRate = …;
template <typename T, class SampleTraits>
void RunInterleaveBench(AudioBus* bus,
const std::string& trace_name,
bool to_interleaved_only = false) { … }
TEST(AudioBusPerfTest, Interleave) { … }
TEST(AudioBusPerfTest, DISABLED_ToInterleavedFloat) { … }
void RunCopyBench(void (AudioBus::*f)(AudioBus*) const,
const std::string& trace_name) { … }
TEST(AudioBusPerfTest, DISABLED_CopyBench) { … }
}