aboutsummaryrefslogtreecommitdiff
path: root/tests/utils
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils')
-rw-r--r--tests/utils/CMakeLists.txt1
-rw-r--r--tests/utils/mock-greeter.py (renamed from tests/utils/mock-unity-greeter.py)10
2 files changed, 5 insertions, 6 deletions
diff --git a/tests/utils/CMakeLists.txt b/tests/utils/CMakeLists.txt
index e458c82..fd82b79 100644
--- a/tests/utils/CMakeLists.txt
+++ b/tests/utils/CMakeLists.txt
@@ -14,4 +14,3 @@ qt5_use_modules(
Core
DBus
)
-
diff --git a/tests/utils/mock-unity-greeter.py b/tests/utils/mock-greeter.py
index 70fb791..dc48a6d 100644
--- a/tests/utils/mock-unity-greeter.py
+++ b/tests/utils/mock-greeter.py
@@ -1,4 +1,4 @@
-'''unity greeter mock template
+'''desktop greeter mock template
Very basic template that just mocks the greeter is-active flag
'''
@@ -19,17 +19,17 @@ import os
from dbusmock import MOCK_IFACE, mockobject
-BUS_NAME = 'com.canonical.UnityGreeter'
+BUS_NAME = 'org.ayatana.Greeter'
MAIN_OBJ = '/'
-MAIN_IFACE = 'com.canonical.UnityGreeter'
+MAIN_IFACE = 'org.ayatana.Greeter'
SYSTEM_BUS = False
def load(mock, parameters):
mock.AddMethods(
MAIN_IFACE, [
- ('HideGreeter', '', '', 'self.Set("com.canonical.UnityGreeter", "IsActive", False)'),
- ('ShowGreeter', '', '', 'self.Set("com.canonical.UnityGreeter", "IsActive", True)')
+ ('HideGreeter', '', '', 'self.Set("org.ayatana.Greeter", "IsActive", False)'),
+ ('ShowGreeter', '', '', 'self.Set("org.ayatana.Greeter", "IsActive", True)')
]
)
mock.AddProperties(