chromium/services/audio/sync_reader_unittest.cc

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

#include "services/audio/sync_reader.h"

#include <limits>
#include <memory>
#include <string>
#include <type_traits>
#include <utility>

#include "base/check.h"
#include "base/containers/span.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/unsafe_shared_memory_region.h"
#include "base/sync_socket.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_parameters.h"
#include "services/audio/output_glitch_counter.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

NiceMock;
Test;
TestWithParam;

AudioBus;
AudioOutputBuffer;
AudioOutputBufferParameters;
AudioParameters;

namespace audio {

namespace {

void NoLog(const std::string&) {}

static_assert;

enum OverflowTestCase {};

static const OverflowTestCase overflow_test_case_values[]{};

class SyncReaderBitstreamTest : public TestWithParam<OverflowTestCase> {};

TEST_P(SyncReaderBitstreamTest, BitstreamBufferOverflow_DoesNotWriteOOB) {}

INSTANTIATE_TEST_SUITE_P();

class MockOutputGlitchCounter : public OutputGlitchCounter {};

class SyncReaderTest : public ::testing::Test {};

TEST_F(SyncReaderTest, CallsGlitchCounter) {}

TEST_F(SyncReaderTest, PropagatesDelay) {}

TEST_F(SyncReaderTest, PropagatesGlitchInfo) {}

}  // namespace
}  // namespace audio