summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Yan Han <yanha@google.com> 2023-04-19 17:06:27 +0200
committer Yan Han <yanha@google.com> 2023-05-10 16:53:43 +0200
commit71afeaa6f311f3683d7ced694e74a20391eb0b9e (patch)
tree1c080c45cdb06b683d42f1101408ab238299e8b2 /libs/androidfw/ObbFile.cpp
parent091b2e2e908c728ad948094c68ff1248b2332519 (diff)
Add wrapper for AudioManager, allowing it to be faked in tests
Makes HdmiControlService's test constructor take a wrapper for AudioManager, allowing it to be to be faked in unit tests in a similar way to AudioDeviceVolumeManager. Adds the FakeAudioFramework class, which exposes a fake for both AudioManager and AudioDeviceVolumeManager. FakeAudioFramework stores the shared internal state for both managers, simulating AudioService. Renames the existing wrapper and wrapper interface for AudioDeviceVolumeManager to make it more consistent with PowerManagerInternal. For example, instead of ThingWrapper and FakeThingWrapper implementing ThingWrapperInterface, we have DefaultThingWrapper and FakeThingWrapper implementing ThingWrapper. Bug: 217923086 Test: atest com.android.server.hdmi Change-Id: Ia9d5f7aa382223d523771b8d0382d40d622aa292
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions