This website requires JavaScript.
Explore
Help
Sign In
yukijoou
/
kwin
Watch
1
Star
0
Fork
You've already forked kwin
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
44bb78c193
kwin
/
autotests
/
workspace.h
2 lines
28 B
C
Raw
Normal View
History
Unescape
Escape
[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.
2014-09-17 08:29:03 +00:00
#
include
"mock_workspace.h"
Reference in a new issue
Copy permalink