summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Yohei Yukawa <yukawa@google.com> 2024-07-09 09:36:19 +0000
committer Yohei Yukawa <yukawa@google.com> 2024-07-09 09:36:19 +0000
commit62c089ce9e39728bc0884410a9a814a3eedae9b1 (patch)
tree871ec4b79e1e136728958b39a14d6cceb25aa17f /libs/androidfw/StringPool.cpp
parentc7aa0be40fba631117882fa7cc380ea9394f372f (diff)
Mock local services in a more reliable way
This is a preparation before making InputMethodManagerService#mImeDrawsImeNavBarRes multi-user ready. As discussed in https://github.com/mockito/mockito/issues/2142, mocked static methods are available only in the calling thread. For testing purposes just calling LocalServices.addService() to inject mocked local services then removing them with LocalServices.removeAllServicesForTest() would be much more simpler and easier to understand. Bug: 345519864 Test: atest FrameworksInputMethodSystemServerTests Flag: TEST_ONLY Change-Id: If2d5e8ae6e002de9698c6a8eda489a6824f244e7
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions