#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/gpu/chromeos/mailbox_video_frame_converter.h"
#include <optional>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "gpu/command_buffer/common/shared_image_capabilities.h"
#include "gpu/command_buffer/common/sync_token.h"
#include "media/base/media_switches.h"
#include "media/base/simple_sync_token_client.h"
#include "media/gpu/chromeos/video_frame_resource.h"
#include "media/video/fake_gpu_memory_buffer.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/gpu_fence_handle.h"
#include "ui/gfx/gpu_memory_buffer.h"
_;
ByMove;
DoAll;
Expectation;
InSequence;
Mock;
Property;
Ref;
Return;
SaveArg;
StrictMock;
namespace media {
namespace {
class MockGpuDelegate : public MailboxVideoFrameConverter::GpuDelegate { … };
}
class MailboxVideoFrameConverterTest : public ::testing::Test { … };
class MailboxVideoFrameConverterWithUnwrappedFramesTest
: public MailboxVideoFrameConverterTest,
public ::testing::WithParamInterface<bool> { … };
TEST_P(MailboxVideoFrameConverterWithUnwrappedFramesTest,
CanConvertMultipleFramesAndThenHandleTheirRelease) { … }
INSTANTIATE_TEST_SUITE_P(…);
}