From d6efdfab4bbbdc89a678241d113a821b6e2af8e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 10 Jan 2017 10:59:31 +0800 Subject: [PATCH] monitor-unit-tests: Mock laptop lid state For now, always assume the laptop lid is open, as all test cases assume this. https://bugzilla.gnome.org/show_bug.cgi?id=777732 --- src/tests/meta-monitor-manager-test.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tests/meta-monitor-manager-test.c b/src/tests/meta-monitor-manager-test.c index aa1b21f35..41dd5825f 100644 --- a/src/tests/meta-monitor-manager-test.c +++ b/src/tests/meta-monitor-manager-test.c @@ -85,6 +85,12 @@ meta_monitor_manager_test_read_current (MetaMonitorManager *manager) manager->n_outputs = manager_test->test_setup->n_outputs; } +static gboolean +meta_monitor_manager_test_is_lid_closed (MetaMonitorManager *manager) +{ + return FALSE; +} + static void meta_monitor_manager_test_ensure_initial_config (MetaMonitorManager *manager) { @@ -334,6 +340,7 @@ meta_monitor_manager_test_class_init (MetaMonitorManagerTestClass *klass) object_class->dispose = meta_monitor_manager_test_dispose; manager_class->read_current = meta_monitor_manager_test_read_current; + manager_class->is_lid_closed = meta_monitor_manager_test_is_lid_closed; manager_class->ensure_initial_config = meta_monitor_manager_test_ensure_initial_config; manager_class->apply_monitors_config = meta_monitor_manager_test_apply_monitors_config; manager_class->apply_configuration = meta_monitor_manager_test_apply_configuration;