#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "services/audio/delay_buffer.h"
#include <algorithm>
#include "media/base/audio_bus.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace audio {
namespace {
constexpr int kChannels = …;
constexpr int kMaxFrames = …;
#define EXPECT_BUS_VALUES_EQ(bus, begin, end, value) …
TEST(DelayBufferTest, RecordsAMaximumNumberOfFrames) { … }
TEST(DelayBufferTest, ReadsSilenceIfNothingWasRecorded) { … }
TEST(DelayBufferTest, ReadsSilenceIfOutsideRecordedRange) { … }
TEST(DelayBufferTest, ReadsGapsInRecording) { … }
}
}