summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Daniel Norman <danielnorman@google.com> 2023-09-09 01:37:48 +0000
committer Daniel Norman <danielnorman@google.com> 2023-09-11 21:03:07 +0000
commit85784a4b83726a0c11cc13ac1bf5094122599fb3 (patch)
tree85bfa4912d1735de2b21dc106cef581611636707 /libs/androidfw/AssetsProvider.cpp
parent28aef0fedf1fc345d48ed98a7378e4906576a04f (diff)
Replace SetFlagsRule with CheckFlagsRule.
SetFlagsRule is intended for unit tests of completely isolated unit test methods; while ProxyManagerTest does use mocking in order to keep its execution environment simpler & assert that certain mocked methods are executed, it is still an executed as an integration test that depends on the running state of the device and interacts with other classes on the device. CheckFlagsRule is better suited for testing non-isolated methods because it uses the default value of all flags on the device (it doesn't change any flags) and instead skips irrelevant tests if a flag is required to be enabled or disable for a given test. Bug: 286587811 Test: atest ProxyManagerTest, both with flag disabled & enabled Change-Id: I615af25b71c5696f11e7901b12948a8fc0d7f79b
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions