#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <limits>
#include <memory>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_push_fifo.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
namespace {
class AudioPushFifoTest : public testing::TestWithParam<int> { … };
TEST_P(AudioPushFifoTest, PushOneFrameAtATime) { … }
TEST_P(AudioPushFifoTest, Push128FramesAtATime) { … }
TEST_P(AudioPushFifoTest, Push512FramesAtATime) { … }
TEST_P(AudioPushFifoTest, Push441FramesAtATime) { … }
TEST_P(AudioPushFifoTest, Push480FramesAtATime) { … }
TEST_P(AudioPushFifoTest, PushArbitraryNumbersOfFramesAtATime) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}