#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/platform/audio/push_pull_fifo.h"
#include <memory>
#include <vector>
#include "base/logging.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/platform/audio/audio_utilities.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
namespace {
TEST(PushPullFIFOBasicTest, BasicTests) { … }
size_t FillBusWithLinearRamp(AudioBus* target_bus, size_t starting_value) { … }
bool VerifyBusValueAtIndex(AudioBus* target_bus,
int index,
float expected_value) { … }
struct FIFOAction { … };
struct AudioBusSample { … };
struct FIFOTestSetup { … };
struct FIFOTestExpectedState { … };
struct FIFOTestParam { … };
std::ostream& operator<<(std::ostream& out, const FIFOTestParam& param) { … }
class PushPullFIFOFeatureTest : public testing::TestWithParam<FIFOTestParam> { … };
TEST_P(PushPullFIFOFeatureTest, FeatureTests) { … }
FIFOTestParam g_feature_test_params[] = …;
INSTANTIATE_TEST_SUITE_P(…);
struct FIFOEarmarkTestParam { … };
class PushPullFIFOEarmarkFramesTest
: public testing::TestWithParam<FIFOEarmarkTestParam> { … };
TEST_P(PushPullFIFOEarmarkFramesTest, FeatureTests) { … }
FIFOEarmarkTestParam g_earmark_test_params[] = …;
INSTANTIATE_TEST_SUITE_P(…);
}
}