summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/protocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/tools/wptrunner/wptrunner/executors/protocol.py')
-rw-r--r--testing/web-platform/tests/tools/wptrunner/wptrunner/executors/protocol.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/protocol.py b/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/protocol.py
index e44d1a7666..3d588738b6 100644
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/protocol.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/protocol.py
@@ -802,3 +802,17 @@ class VirtualSensorProtocolPart(ProtocolPart):
@abstractmethod
def get_virtual_sensor_information(self, sensor_type):
pass
+
+class DevicePostureProtocolPart(ProtocolPart):
+ """Protocol part for Device Posture"""
+ __metaclass__ = ABCMeta
+
+ name = "device_posture"
+
+ @abstractmethod
+ def set_device_posture(self, posture):
+ pass
+
+ @abstractmethod
+ def clear_device_posture(self):
+ pass