#include "services/audio/realtime_audio_thread.h"
#include <cstring>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "media/audio/simple_sources.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace audio {
class RealtimeAudioThreadTest : public testing::Test { … };
#if BUILDFLAG(IS_APPLE)
TEST_F(RealtimeAudioThreadTest, GetRealtimePeriod) {
constexpr base::TimeDelta kPeriod = base::Milliseconds(123);
RealtimeAudioThread thread("TestThread", kPeriod);
EXPECT_EQ(thread.GetRealtimePeriod(), kPeriod);
}
#endif
TEST_F(RealtimeAudioThreadTest, StartStop) { … }
TEST_F(RealtimeAudioThreadTest, StartDestroy) { … }
}