#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/speech/endpointer/endpointer.h"
#include <stdint.h>
#include "base/memory/raw_ptr.h"
#include "base/types/fixed_array.h"
#include "components/speech/audio_buffer.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const int kFrameRate = …;
}
namespace speech {
class FrameProcessor { … };
void RunEndpointerEventsTest(FrameProcessor* processor, int sample_rate) { … }
class EnergyEndpointerFrameProcessor : public FrameProcessor { … };
TEST(EndpointerTest, TestEnergyEndpointerEvents) { … }
class EndpointerFrameProcessor : public FrameProcessor { … };
TEST(EndpointerTest, TestEmbeddedEndpointerEvents) { … }
TEST(EndpointerTest, HighSampleRate) { … }
}