[mutter] monitor-store-unit-tests: Check the primary and presentation flags
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor-store-unit-tests: Check the primary and presentation flags
- Date: Wed, 25 Jan 2017 08:39:21 +0000 (UTC)
commit 9fb8abf84062f20d6ee6fda953c219c043054967
Author: Jonas Ådahl <jadahl gmail com>
Date: Mon Jan 16 13:07:58 2017 +0800
monitor-store-unit-tests: Check the primary and presentation flags
https://bugzilla.gnome.org/show_bug.cgi?id=777732
src/tests/monitor-store-unit-tests.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/tests/monitor-store-unit-tests.c b/src/tests/monitor-store-unit-tests.c
index 824ec11..5161809 100644
--- a/src/tests/monitor-store-unit-tests.c
+++ b/src/tests/monitor-store-unit-tests.c
@@ -45,11 +45,14 @@ typedef struct _MonitorTestCaseMonitor
const char *product;
const char *serial;
MonitorTestCaseMonitorMode mode;
+ gboolean is_underscanning;
} MonitorTestCaseMonitor;
typedef struct _MonitorTestCaseLogicalMonitor
{
MetaRectangle layout;
+ gboolean is_primary;
+ gboolean is_presentation;
MonitorTestCaseMonitor monitors[MAX_N_MONITORS];
int n_monitors;
} MonitorTestCaseLogicalMonitor;
@@ -136,6 +139,12 @@ check_monitor_configuration (MetaMonitorConfigStore *config_store,
g_assert (meta_rectangle_equal (&logical_monitor_config->layout,
&config_expect->logical_monitors[i].layout));
+ g_assert_cmpint (logical_monitor_config->is_primary,
+ ==,
+ config_expect->logical_monitors[i].is_primary);
+ g_assert_cmpint (logical_monitor_config->is_presentation,
+ ==,
+ config_expect->logical_monitors[i].is_presentation);
for (k = logical_monitor_config->monitor_configs, j = 0;
k;
@@ -204,6 +213,8 @@ meta_test_monitor_store_single (void)
.width = 1920,
.height = 1080
},
+ .is_primary = TRUE,
+ .is_presentation = FALSE,
.monitors = {
{
.connector = "DP-1",
@@ -251,6 +262,8 @@ meta_test_monitor_store_vertical (void)
.width = 1024,
.height = 768
},
+ .is_primary = TRUE,
+ .is_presentation = FALSE,
.monitors = {
{
.connector = "DP-1",
@@ -273,6 +286,8 @@ meta_test_monitor_store_vertical (void)
.width = 800,
.height = 600
},
+ .is_primary = FALSE,
+ .is_presentation = FALSE,
.monitors = {
{
.connector = "DP-2",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]