summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Joël Stemmer <jstemmer@google.com> 2024-03-21 15:33:39 +0000
committer Joël Stemmer <jstemmer@google.com> 2024-03-21 16:18:09 +0000
commitf9c185e334bc36175b4e2a90ae3cd4a2fbf14e3e (patch)
tree165473341410745bb97f5b50d49412399cbaf8f9 /libs/androidfw/StringPool.cpp
parent8747a0a31c7b34c1f677b43625429153e7af420f (diff)
Use a mock PackageManager instead of the real one
The PackageManagerBackupAgent tests require an installed and not-installed package to test different cases. Originally I used `com.android.wallpaperbackup` as the installed package, as I thought that would always be available. However, it turns out that not all form factors may have this package. Rather than trying to find a different package that is guaranteed to always be installed, I've replaced the package manager with a mock. This will also prevent future test breakages if the chosen package would ever get removed. Test: atest PackageManagerBackupAgent Bug: 277594991 Bug: 330602059 Change-Id: I3ee899a11949dbb8531ff272d433c964f411c5f7
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions