summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Yuri Lin <yurilin@google.com> 2023-04-19 14:49:55 -0400
committer Yuri Lin <yurilin@google.com> 2023-04-20 17:05:23 -0400
commitc5629d1efa4639a6ceec7ee893f625a9b6995f59 (patch)
tree5b993fdd42166ddd0bbb8ad090772437c5b35b03 /libs/androidfw/StringPool.cpp
parent4e942f0802ac9f3ec7b48f685466f7d8526e8293 (diff)
Remove spy() from ZenModeHelper in ZenModeHelperTest
In addition to spying the object one is testing to be not a great idea, this was messing up some operations (changing the config would be operating on two different objects under the hood). This change removes the spied version of the object in favor of just having a regular ZenModeHelper under test and changes relevant tests to check the operations on the AppOpsManager mock instead. Also changes setupZenConfig() to default to setting zen mode to OFF. It's not technically a correct state for a config to be in ZEN_MODE_IMPORTANT_INTERRUPTIONS without any active zen rules (manual or automatic). Because this method is primarily used in XML tests (where the manual rule isn't expected to be restored anyway), it is more correct to default to starting in the "off" state. Fixes: 278914182 Test: atest ZenModeHelperTest Change-Id: Ib107394134c0babe9ac40befc56245d637e7925a
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions