#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/gpu/vaapi/vaapi_utils.h"
#include <va/va.h>
#include <memory>
#include <vector>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/scoped_refptr.h"
#include "base/numerics/safe_conversions.h"
#include "base/synchronization/lock.h"
#include "base/test/gtest_util.h"
#include "media/gpu/vaapi/vaapi_wrapper.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/size.h"
namespace media {
namespace {
constexpr VAImageFormat kImageFormatI420 = …;
}
class VaapiUtilsTest : public testing::Test { … };
TEST_F(VaapiUtilsTest, ScopedVABuffer) { … }
TEST_F(VaapiUtilsTest, ScopedVAImage) { … }
TEST_F(VaapiUtilsTest, BadScopedVAImage) { … }
TEST_F(VaapiUtilsTest, BadScopedVABufferMapping) { … }
TEST_F(VaapiUtilsTest, ScopedVASurface) { … }
TEST_F(VaapiUtilsTest, ScopedVASurfaceWithVisibleSize) { … }
TEST_F(VaapiUtilsTest, ScopedVASurfaceInvalidSizeRequest) { … }
TEST_F(VaapiUtilsTest, ScopedVASurfaceInvalidRTFormatRequest) { … }
}