Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c61cc1e authored by Jeremy Wu's avatar Jeremy Wu
Browse files

APM: improve getAudioMixPort simulation in test

The unit tests failed to catch the regression when flag is disabled due
to that it has mocked the critical function that contains the flag.

This change makes the mocked function respect the flag and produce
similar results so that it will result in failure without the fix.

Bug: 417874384
Test: Verify test fails when flag disabled
Flag: com.android.media.audioserver.enable_strict_port_routing_checks

Change-Id: I180618b4cc14c164c9db7d163e2890b86d06a26b
parent 15b40177
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment