androidTest: Add tests for SpoofProvider

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-08-19 17:33:50 +05:30
parent 1e98baea3e
commit 766bd3a1c7
2 changed files with 68 additions and 0 deletions

View File

@@ -83,4 +83,15 @@ class SpoofProvider @Inject constructor(
Preferences.putBoolean(context, DEVICE_SPOOF_ENABLED, true)
Preferences.putString(context, DEVICE_SPOOF_PROPERTIES, gson.toJson(properties))
}
fun removeSpoofLocale() {
Preferences.remove(context, LOCALE_SPOOF_ENABLED)
Preferences.remove(context, LOCALE_SPOOF_LANG)
Preferences.remove(context, LOCALE_SPOOF_COUNTRY)
}
fun removeSpoofDeviceProperties() {
Preferences.remove(context, DEVICE_SPOOF_ENABLED)
Preferences.remove(context, DEVICE_SPOOF_PROPERTIES)
}
}