#include <kunit/test.h>
#include <drm/drm_connector.h>
#include <drm/drm_edid.h>
#include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <drm/drm_modes.h>
#include <drm/drm_modeset_helper_vtables.h>
#include <drm/drm_probe_helper.h>
struct drm_client_modeset_test_priv { … };
static int drm_client_modeset_connector_get_modes(struct drm_connector *connector)
{ … }
static const struct drm_connector_helper_funcs drm_client_modeset_connector_helper_funcs = …;
static const struct drm_connector_funcs drm_client_modeset_connector_funcs = …;
static int drm_client_modeset_test_init(struct kunit *test)
{ … }
static void drm_test_pick_cmdline_res_1920_1080_60(struct kunit *test)
{ … }
struct drm_connector_pick_cmdline_mode_test { … };
#define TEST_CMDLINE(_cmdline, _fn) …
static void drm_test_pick_cmdline_named(struct kunit *test)
{ … }
static const
struct drm_connector_pick_cmdline_mode_test drm_connector_pick_cmdline_mode_tests[] = …;
static void
drm_connector_pick_cmdline_mode_desc(const struct drm_connector_pick_cmdline_mode_test *t,
char *desc)
{ … }
KUNIT_ARRAY_PARAM(drm_connector_pick_cmdline_mode,
drm_connector_pick_cmdline_mode_tests,
drm_connector_pick_cmdline_mode_desc);
static struct kunit_case drm_test_pick_cmdline_tests[] = …;
static struct kunit_suite drm_test_pick_cmdline_test_suite = …;
kunit_test_suite(…) …;