chromium/third_party/blink/renderer/modules/mediarecorder/audio_track_mojo_encoder_unittest.cc

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

#include "third_party/blink/renderer/modules/mediarecorder/audio_track_mojo_encoder.h"

#include <memory>

#include "base/containers/heap_array.h"
#include "base/functional/bind.h"
#include "base/notreached.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "media/base/audio_encoder.h"
#include "media/base/encoder_status.h"
#include "media/base/test_helpers.h"
#include "media/mojo/buildflags.h"
#include "media/mojo/mojom/audio_encoder.mojom.h"
#include "media/mojo/mojom/interface_factory.mojom.h"
#include "mojo/public/cpp/bindings/associated_remote.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/thread_safe_browser_interface_broker_proxy.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
#include "third_party/blink/renderer/modules/mediarecorder/audio_track_recorder.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"

namespace blink {

namespace {

std::unique_ptr<media::AudioBus> GenerateInput() {}

class TestAudioEncoder final : public media::mojom::AudioEncoder {};

class TestInterfaceFactory final : public media::mojom::InterfaceFactory {};

}  // namespace

class AudioTrackMojoEncoderTest : public testing::Test {};

TEST_F(AudioTrackMojoEncoderTest, InputArrivingAfterInitialization) {}

TEST_F(AudioTrackMojoEncoderTest, InputArrivingWhileUninitialized) {}

TEST_F(AudioTrackMojoEncoderTest, PausedAfterInitialization) {}

TEST_F(AudioTrackMojoEncoderTest, PausedWhileUninitialized) {}

TEST_F(AudioTrackMojoEncoderTest, OnSetFormatError) {}

TEST_F(AudioTrackMojoEncoderTest, EncoderInitializationError) {}

}  // namespace blink