1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01:00

workloads/speedometer: Dismiss notification pop-up

When speedometer is running on a Chrome package on Android 14, a pop-up
window was showing on the screen. Chrome preferences file is modified
to dismiss the window.
This commit is contained in:
Elif Topuz 2024-05-08 17:10:45 +01:00 committed by Marc Bonnici
parent e0bf7668b8
commit 4e9d402c24

View File

@ -204,6 +204,9 @@ class Speedometer(Workload):
'<boolean name="first_run_tos_accepted" value="true" />\n',
'<boolean name="first_run_signin_complete" value="true" />\n',
'<boolean name="displayed_data_reduction_promo" value="true" />\n',
# Add a 'request count' value to dismiss the pop-up window on the screen.
# If the value is greater than 1, pop-up window will be dismissed.
'<int name="Chrome.NotificationPermission.RequestCount" value="2" />\n',
]:
lines.insert(len(lines) - 1, line)