#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <stddef.h>
#include <cmath>
#include <memory>
#include <vector>
#include "base/time/time.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_shifter.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
const int kSampleRate = …;
const int kInputPacketSize = …;
const int kOutputPacketSize = …;
class AudioShifterTest :
public ::testing::TestWithParam<::testing::tuple<int, int, int, bool> > { … };
TEST_P(AudioShifterTest, TestSync) { … }
TEST_P(AudioShifterTest, TestSyncWithPush) { … }
TEST_P(AudioShifterTest, TestSyncWithPull) { … }
TEST_P(AudioShifterTest, UnderOverFlow) { … }
INSTANTIATE_TEST_SUITE_P(…);
}