#include "media/base/fake_audio_worker.h"
#include <limits>
#include <memory>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "base/test/test_mock_time_task_runner.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
#include "base/time/time_override.h"
#include "build/build_config.h"
#include "media/base/audio_parameters.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
static const size_t kTestCallbacks = …;
Eq;
SizeIs;
class FakeAudioWorkerTest : public testing::Test { … };
TEST_F(FakeAudioWorkerTest, FakeBasicCallback) { … }
TEST_F(FakeAudioWorkerTest, TimeBetweenCallbacks) { … }
TEST_F(FakeAudioWorkerTest, StartStopClearsCallbacks) { … }
class FakeAudioWorkerMockTaskTest : public testing::Test { … };
const base::TickClock* FakeAudioWorkerMockTaskTest::global_clock_ = …;
TEST_F(FakeAudioWorkerMockTaskTest, DISABLED_LateCallbackProducesCallback) { … }
TEST_F(FakeAudioWorkerMockTaskTest, CallbackDelay) { … }
}