#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <va/va.h>
#include <va/va_drm.h>
#include <xf86drm.h>
#include <algorithm>
#include "base/environment.h"
#include "base/files/file.h"
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
#include "base/types/fixed_array.h"
#include "media/gpu/vaapi/va_stubs.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
using media_gpu_vaapi::kModuleVa_prot;
#endif
kModuleVa;
kModuleVa_drm;
StubPathMap;
class FakeDriverTest : public testing::Test { … };
TEST_F(FakeDriverTest, VerifyQueryConfigProfiles) { … }
TEST_F(FakeDriverTest, CanCreateConfig) { … }
TEST_F(FakeDriverTest, QueryConfigAttributesForValidConfigID) { … }
TEST_F(FakeDriverTest, QueryConfigAttributesCrashesForInvalidConfigID) { … }
TEST_F(FakeDriverTest, CreateContextForValidConfigID) { … }
TEST_F(FakeDriverTest, CreateContextCrashesForInvalidConfigID) { … }
TEST_F(FakeDriverTest, QuerySurfaceAttributesForValidConfigID) { … }
TEST_F(FakeDriverTest, QuerySurfaceAttributesCrashesForInvalidConfigID) { … }
TEST_F(FakeDriverTest, DestroyConfigForValidConfigID) { … }
TEST_F(FakeDriverTest, DestroyConfigCrashesForInvalidConfigID) { … }
TEST_F(FakeDriverTest, CanCreateSurfaces) { … }
TEST_F(FakeDriverTest, CanCreateContextForValidSurfaceAndConfigIDs) { … }
TEST_F(FakeDriverTest, CreateContextCrashesForInvalidSurfaceID) { … }
TEST_F(FakeDriverTest, CanBeginPictureForValidSurfaceID) { … }
TEST_F(FakeDriverTest, BeginPictureCrashesForInvalidSurfaceID) { … }
TEST_F(FakeDriverTest, CanSyncSurfaceForValidSurfaceID) { … }
TEST_F(FakeDriverTest, SyncSurfaceCrashesForInvalidSurfaceID) { … }
TEST_F(FakeDriverTest, CanGetImageForValidSurfaceID) { … }
TEST_F(FakeDriverTest, GetImageCrashesForInvalidSurfaceID) { … }
TEST_F(FakeDriverTest, CanPutImageForValidSurfaceID) { … }
TEST_F(FakeDriverTest, PutImageCrashesForInvalidSurfaceID) { … }
TEST_F(FakeDriverTest, CanDeriveImageForValidSurfaceID) { … }
TEST_F(FakeDriverTest, DeriveImageCrashesForInvalidSurfaceID) { … }
TEST_F(FakeDriverTest, CanDestroySurfacesForValidSurfaceIDs) { … }
TEST_F(FakeDriverTest, DestroySurfacesCrashesForInvalidSurfaceIDs) { … }
TEST_F(FakeDriverTest, CanCreateContext) { … }
TEST_F(FakeDriverTest, CanCreateBufferForValidContextID) { … }
TEST_F(FakeDriverTest, CreateBufferCrashesForInvalidContextID) { … }
TEST_F(FakeDriverTest, CanBeginPictureForValidContextID) { … }
TEST_F(FakeDriverTest, BeginPictureCrashesForInvalidContextID) { … }
TEST_F(FakeDriverTest, CanRenderPictureForValidContextID) { … }
TEST_F(FakeDriverTest, RenderPictureCrashesForInvalidContextID) { … }
TEST_F(FakeDriverTest, CanEndPictureForValidContextID) { … }
TEST_F(FakeDriverTest, EndPictureCrashesForInvalidContextID) { … }
TEST_F(FakeDriverTest, CanDestroyContextForValidContextID) { … }
TEST_F(FakeDriverTest, DestroyContextCrashesForInvalidContextID) { … }
int main(int argc, char** argv) { … }