chromium/media/base/fake_audio_worker_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// Ensure the time between callbacks is correct.
TEST_F(FakeAudioWorkerTest, TimeBetweenCallbacks) {}

// Ensure Start()/Stop() on the worker doesn't generate too many callbacks. See
// http://crbug.com/159049.
TEST_F(FakeAudioWorkerTest, StartStopClearsCallbacks) {}

class FakeAudioWorkerMockTaskTest : public testing::Test {};

const base::TickClock* FakeAudioWorkerMockTaskTest::global_clock_ =;

// This test is disabled because when late we skip reading to maintain
// compatibility for input and output streams.
// This test is designed to be manually executed.
TEST_F(FakeAudioWorkerMockTaskTest, DISABLED_LateCallbackProducesCallback) {}

TEST_F(FakeAudioWorkerMockTaskTest, CallbackDelay) {}
}  // namespace media