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:
parent
f46e428a5c
commit
d285a9c21c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user