From 5b07bb3df03cc95d6b50a8eec2bd30563a6d5b43 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 26 Feb 2024 21:33:52 +0100 Subject: save manually added providers in encrypted shared preferences instead of external files dir --- .../test/java/se/leap/bitmaskclient/testutils/MockHelper.java | 10 ---------- .../se/leap/bitmaskclient/testutils/MockSharedPreferences.java | 1 + 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'app/src/test/java/se/leap/bitmaskclient/testutils') diff --git a/app/src/test/java/se/leap/bitmaskclient/testutils/MockHelper.java b/app/src/test/java/se/leap/bitmaskclient/testutils/MockHelper.java index 3175b0ad..a7d3e19c 100644 --- a/app/src/test/java/se/leap/bitmaskclient/testutils/MockHelper.java +++ b/app/src/test/java/se/leap/bitmaskclient/testutils/MockHelper.java @@ -133,16 +133,6 @@ public class MockHelper { return resultReceiver; } - - public static InputStreamHelper mockInputStreamHelper() { - return new InputStreamHelper(new InputStreamHelper.InputStreamHelperInterface() { - @Override - public InputStream getInputStreamFrom(String filePath) { - return getClass().getClassLoader().getResourceAsStream(filePath); - } - }); - } - public static class MockFileHelper implements FileHelper.FileHelperInterface { private final File file; private int persistFileCounter = 0; diff --git a/app/src/test/java/se/leap/bitmaskclient/testutils/MockSharedPreferences.java b/app/src/test/java/se/leap/bitmaskclient/testutils/MockSharedPreferences.java index 30ced782..2fd2a2a8 100644 --- a/app/src/test/java/se/leap/bitmaskclient/testutils/MockSharedPreferences.java +++ b/app/src/test/java/se/leap/bitmaskclient/testutils/MockSharedPreferences.java @@ -158,6 +158,7 @@ public class MockSharedPreferences implements SharedPreferences { mockedStringPrefs = new HashMap<>(tempStrings); mockedBooleanPrefs = new HashMap<>(tempBoolean); mockedIntPrefs = new HashMap<>(tempIntegers); + mockedStringSetPrefs = new HashMap<>(tempStringSets); } }; } -- cgit v1.2.3