#include "third_party/blink/renderer/modules/breakout_box/media_stream_video_track_underlying_source.h"
#include <optional>
#include "base/feature_list.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/gmock_callback_support.h"
#include "base/time/time.h"
#include "media/base/video_frame_metadata.h"
#include "media/capture/video/video_capture_buffer_pool_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/mediastream/media_stream_request.h"
#include "third_party/blink/public/platform/modules/mediastream/web_media_stream_track.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
#include "third_party/blink/public/web/web_heap.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_tester.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/streams/readable_stream.h"
#include "third_party/blink/renderer/core/streams/readable_stream_default_controller_with_script_scope.h"
#include "third_party/blink/renderer/modules/breakout_box/pushable_media_stream_video_source.h"
#include "third_party/blink/renderer/modules/breakout_box/stream_test_utils.h"
#include "third_party/blink/renderer/modules/mediastream/media_stream_track.h"
#include "third_party/blink/renderer/modules/mediastream/media_stream_track_impl.h"
#include "third_party/blink/renderer/modules/mediastream/media_stream_video_track.h"
#include "third_party/blink/renderer/modules/mediastream/mock_media_stream_video_sink.h"
#include "third_party/blink/renderer/modules/webcodecs/video_frame.h"
#include "third_party/blink/renderer/modules/webcodecs/video_frame_monitor.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/testing/io_task_runner_testing_platform_support.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support.h"
_;
namespace blink {
class MediaStreamVideoTrackUnderlyingSourceTest : public testing::Test { … };
TEST_F(MediaStreamVideoTrackUnderlyingSourceTest,
VideoFrameFlowsThroughStreamAndCloses) { … }
TEST_F(MediaStreamVideoTrackUnderlyingSourceTest,
CancelStreamDisconnectsFromTrack) { … }
TEST_F(MediaStreamVideoTrackUnderlyingSourceTest,
DropOldFramesWhenQueueIsFull) { … }
TEST_F(MediaStreamVideoTrackUnderlyingSourceTest, QueueSizeCannotBeZero) { … }
TEST_F(MediaStreamVideoTrackUnderlyingSourceTest, PlatformSourceAliveAfterGC) { … }
TEST_F(MediaStreamVideoTrackUnderlyingSourceTest, CloseOnContextDestroyed) { … }
TEST_F(MediaStreamVideoTrackUnderlyingSourceTest, CloseBeforeStart) { … }
TEST_F(MediaStreamVideoTrackUnderlyingSourceTest,
DeviceIdAndMaxFrameCountForMonitoring) { … }
TEST_F(MediaStreamVideoTrackUnderlyingSourceTest, FrameLimiter) { … }
TEST_F(MediaStreamVideoTrackUnderlyingSourceTest,
VideoFramePrefersCaptureTimestamp) { … }
}