linux/drivers/gpu/drm/tests/drm_framebuffer_test.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Test cases for the drm_framebuffer functions
 *
 * Copyright (c) 2022 Maíra Canal <[email protected]>
 */

#include <kunit/test.h>

#include <drm/drm_device.h>
#include <drm/drm_mode.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_print.h>

#include "../drm_crtc_internal.h"

#define MIN_WIDTH
#define MAX_WIDTH
#define MIN_HEIGHT
#define MAX_HEIGHT

struct drm_framebuffer_test {};

static const struct drm_framebuffer_test drm_framebuffer_create_cases[] =;

static struct drm_framebuffer *fb_create_mock(struct drm_device *dev,
					      struct drm_file *file_priv,
					      const struct drm_mode_fb_cmd2 *mode_cmd)
{}

static struct drm_mode_config_funcs mock_config_funcs =;

static int drm_framebuffer_test_init(struct kunit *test)
{}

static void drm_test_framebuffer_create(struct kunit *test)
{}

static void drm_framebuffer_test_to_desc(const struct drm_framebuffer_test *t, char *desc)
{}

KUNIT_ARRAY_PARAM(drm_framebuffer_create, drm_framebuffer_create_cases,
		  drm_framebuffer_test_to_desc);

static struct kunit_case drm_framebuffer_tests[] =;

static struct kunit_suite drm_framebuffer_test_suite =;

kunit_test_suite();

MODULE_DESCRIPTION();
MODULE_LICENSE();