Jonas Ådahl
cde1a730e8
monitor-unit-tests: Add laptop lid switch test case
...
Test that the laptop panel is disabled if the lid is closed.
https://bugzilla.gnome.org/show_bug.cgi?id=777732
2017-01-25 16:28:55 +08:00
Jonas Ådahl
310064601c
monitor-unit-tests: Check tiled monitor adding/removing notification
...
Check that the moniter manager backends get the tiled monitor
added/removed notification.
https://bugzilla.gnome.org/show_bug.cgi?id=777732
2017-01-25 16:28:54 +08:00
Jonas Ådahl
0873e3812b
backends: Rename MetaMonitorMode to MetaCrtcMode
...
The MetaMonitorMode referred to the mode of a CRTC, and with the future
introduction of a MetaMonitor, theh old name would be confusing.
Instead call it what it is.
https://bugzilla.gnome.org/show_bug.cgi?id=777732
2017-01-25 16:28:53 +08:00
Jonas Ådahl
1650c35e38
monitor-manager: Rename MetaCRTC(Info) to MetaCrtc(Info)
...
Change to follow the naming convention used everywhere else. This means
changing CRTC to Crtc even though it is an abbreviation.
https://bugzilla.gnome.org/show_bug.cgi?id=777732
2017-01-25 16:28:53 +08:00
Jonas Ådahl
2e4c516d43
tests/monitor-manager: Add API to emulate a hotplug event
...
Let a test case pass a test setup, which will be used as the new state
emulated by the test backend.
https://bugzilla.gnome.org/show_bug.cgi?id=777732
2017-01-25 16:28:53 +08:00
Jonas Ådahl
c6d940d3b2
tests: Make monitor unit tests create initial config
...
This way we have both the test setup and testing in the same file.
https://bugzilla.gnome.org/show_bug.cgi?id=777732
2017-01-25 16:28:53 +08:00
Jonas Ådahl
a251675cc0
tests: Use special purpose backend in unit tests
...
Use a special purpose backend when running the unit tests. This will
eventually allow testing things like configuration and hot plugging.
https://bugzilla.gnome.org/show_bug.cgi?id=777732
2017-01-25 16:28:53 +08:00