#include <drm/drm_atomic_state_helper.h>
#include <drm/drm_connector.h>
#include <drm/drm_device.h>
#include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <drm/drm_mode.h>
#include <drm/drm_modes.h>
#include <drm/drm_modeset_helper_vtables.h>
#include <drm/drm_probe_helper.h>
#include <kunit/test.h>
struct drm_probe_helper_test_priv { … };
static const struct drm_connector_helper_funcs drm_probe_helper_connector_helper_funcs = …;
static const struct drm_connector_funcs drm_probe_helper_connector_funcs = …;
static int drm_probe_helper_test_init(struct kunit *test)
{ … }
expected_mode_func_t;
struct drm_connector_helper_tv_get_modes_test { … };
#define _TV_MODE_TEST(_name, _supported, _default, _cmdline, _cmdline_mode, ...) …
#define TV_MODE_TEST(_name, _supported, _default, ...) …
#define TV_MODE_TEST_CMDLINE(_name, _supported, _default, _cmdline, ...) …
static void
drm_test_connector_helper_tv_get_modes_check(struct kunit *test)
{ … }
static const
struct drm_connector_helper_tv_get_modes_test drm_connector_helper_tv_get_modes_tests[] = …;
static void
drm_connector_helper_tv_get_modes_desc(const struct drm_connector_helper_tv_get_modes_test *t,
char *desc)
{ … }
KUNIT_ARRAY_PARAM(drm_connector_helper_tv_get_modes,
drm_connector_helper_tv_get_modes_tests,
drm_connector_helper_tv_get_modes_desc);
static struct kunit_case drm_test_connector_helper_tv_get_modes_tests[] = …;
static struct kunit_suite drm_test_connector_helper_tv_get_modes_suite = …;
kunit_test_suite(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;