You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Martin Gräßlin 4eadc9daef [auto-tests] Add an initial test for Screens
This is a very interesting auto test as Screens uses both Workspace
and Client. Thus it operates in the "impossible to mock" area.

The solution is to provide mock includes in autotests and ensure that
when building the auto-test the mock header includes will be picked
first. There is now a mock class for Workspace and Client providing
just the API pieces used inside Screens.

As Screens is abstract and we cannot properly interact with
QDesktopWidget there is also a MockScreens class inheriting from Screens
and mocking the required functionality (by just operating on a list of
QRects).

The auto-test itself is only performing checks on the abstract class.
The mock class is indirectly tested by Screens calling into the virtual
methods. The test case is not yet complete, but looking quite good
already.
10 years ago
..
wayland_client
wayland_server
CMakeLists.txt [auto-tests] Add an initial test for Screens 10 years ago
client.h [auto-tests] Add an initial test for Screens 10 years ago
fakeeffectplugin.cpp
fakeeffectplugin.json
fakeeffectplugin_version.cpp
fakeeffectplugin_version.json
mock_client.cpp [auto-tests] Add an initial test for Screens 10 years ago
mock_client.h [auto-tests] Add an initial test for Screens 10 years ago
mock_effectshandler.cpp
mock_effectshandler.h
mock_screens.cpp [auto-tests] Add an initial test for Screens 10 years ago
mock_screens.h [auto-tests] Add an initial test for Screens 10 years ago
mock_workspace.cpp [auto-tests] Add an initial test for Screens 10 years ago
mock_workspace.h [auto-tests] Add an initial test for Screens 10 years ago
test_builtin_effectloader.cpp
test_client_machine.cpp
test_plugin_effectloader.cpp
test_screen_paint_data.cpp
test_screens.cpp [auto-tests] Add an initial test for Screens 10 years ago
test_scripted_effectloader.cpp
test_virtual_desktops.cpp
test_window_paint_data.cpp
test_xcb_window.cpp
test_xcb_wrapper.cpp
testutils.h
workspace.h [auto-tests] Add an initial test for Screens 10 years ago