#include "media/gpu/chromeos/native_pixmap_frame_resource.h"
#include <stddef.h>
#include <stdint.h>
#include <optional>
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/scoped_file.h"
#include "base/logging.h"
#include "media/base/color_plane_layout.h"
#include "media/base/format_utils.h"
#include "media/base/video_frame.h"
#include "media/base/video_frame_layout.h"
#include "media/base/video_types.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
namespace media {
namespace {
std::vector<base::ScopedFD> CreateMockDMABufs(size_t num_planes) { … }
scoped_refptr<const gfx::NativePixmapDmaBuf> CreateMockNativePixmapDmaBuf(
VideoPixelFormat pixel_format,
const gfx::Size& coded_size) { … }
}
class CreateTest : public ::testing::Test,
public ::testing::WithParamInterface<
std::tuple<gfx::Size, gfx::Rect, gfx::Size, bool>> { … };
TEST_P(CreateTest, CreateFromDMABufs) { … }
TEST_P(CreateTest, CreateFromNativePixmapDmabuf) { … }
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
}