[mutter] monitor-unit-tests: Mock laptop lid state
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor-unit-tests: Mock laptop lid state
- Date: Wed, 25 Jan 2017 08:37:51 +0000 (UTC)
commit d6efdfab4bbbdc89a678241d113a821b6e2af8e3
Author: Jonas Ådahl <jadahl gmail com>
Date: Tue Jan 10 10:59:31 2017 +0800
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 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/tests/meta-monitor-manager-test.c b/src/tests/meta-monitor-manager-test.c
index aa1b21f..41dd582 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]