#include "remoting/protocol/audio_decode_scheduler.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "remoting/base/auto_thread.h"
#include "remoting/base/auto_thread_task_runner.h"
#include "remoting/proto/audio.pb.h"
#include "remoting/protocol/session_config.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting::protocol {
namespace {
const int kAudioSampleBytes = …;
const uint8_t kDummyAudioData = …;
class FakeAudioConsumer : public AudioStub { … };
}
class AudioDecodeSchedulerTest : public ::testing::Test { … };
void AudioDecodeSchedulerTest::SetUp() { … }
void AudioDecodeSchedulerTest::TearDown() { … }
std::unique_ptr<AudioPacket> CreatePacketWithSamplingRate_(
AudioPacket::SamplingRate rate,
int samples) { … }
std::unique_ptr<AudioPacket> CreatePacket44100Hz_(int samples) { … }
std::unique_ptr<AudioPacket> CreatePacket48000Hz_(int samples) { … }
TEST_F(AudioDecodeSchedulerTest, Shutdown) { … }
}