#include <stdint.h>
#include <memory>
#include "base/command_line.h"
#include "base/memory/aligned_memory.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/test/test_timeouts.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "media/audio/audio_device_info_accessor_for_tests.h"
#include "media/audio/audio_features.h"
#include "media/audio/audio_io.h"
#include "media/audio/audio_manager.h"
#include "media/audio/audio_unittest_util.h"
#include "media/audio/simple_sources.h"
#include "media/audio/test_audio_thread.h"
#include "media/base/limits.h"
#include "media/base/media_switches.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_ANDROID)
#include "media/audio/android/aaudio_stream_wrapper.h"
#include "media/audio/android/audio_manager_android.h"
#endif
namespace media {
class AudioOutputTest : public testing::TestWithParam<bool> { … };
TEST_P(AudioOutputTest, GetAndClose) { … }
TEST_P(AudioOutputTest, OpenAndClose) { … }
TEST_P(AudioOutputTest, StopBeforeStart) { … }
TEST_P(AudioOutputTest, StopTwice) { … }
#if BUILDFLAG(IS_IOS)
#define MAYBE_Play200HzTone …
#else
#define MAYBE_Play200HzTone …
#endif
TEST_P(AudioOutputTest, MAYBE_Play200HzTone) { … }
TEST_P(AudioOutputTest, VolumeControl) { … }
INSTANTIATE_TEST_SUITE_P(…);
#if BUILDFLAG(IS_ANDROID)
INSTANTIATE_TEST_SUITE_P(AAudio, AudioOutputTest, testing::Values(true));
#endif
}