tests/dbusmock-templates/rtkit: Add MakeThreadHighPriority

mutter will soon need to call an additional method in RTKit,
MakeThreadHighPriority.

In preparation for that, this commit stubs it out in the
dbusmock template.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3324>
This commit is contained in:
Ray Strode 2023-10-11 09:37:54 -04:00
parent f46e428a5c
commit d285a9c21c

View File

@ -26,6 +26,10 @@ def load(mock, parameters):
def MakeThreadRealtime(self, thread, priority):
self.priorities[thread] = priority
@dbus.service.method(MAIN_IFACE, in_signature='tu')
def MakeThreadHighPriority(self, thread, priority):
self.priorities[thread] = priority
@dbus.service.method(MOCK_IFACE)
def Reset(self):
self.priorities = dict()