diff options
author | Hui Wang <huiwang@google.com> | 2023-04-06 15:50:23 +0000 |
---|---|---|
committer | Presubmit Automerger Backend <android-build-presubmit-automerger-backend@system.gserviceaccount.com> | 2023-04-06 15:50:23 +0000 |
commit | ecc5b5984894a04ff5e061ba71c2270c46c4cc53 (patch) | |
tree | 254245f4726a15a76fe1f468b867fb23c78c7fbb /tests | |
parent | 7cf188075d19f91386d8b78ea6dbb5b35a41fbce (diff) | |
parent | 39632ce895ce8cbbda038ecdd65a42ee82505e01 (diff) | |
download | CellBroadcastReceiver-ecc5b5984894a04ff5e061ba71c2270c46c4cc53.tar.gz |
[automerge] Stop alert audio before testing 2p: 39632ce895
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/22511543
Bug: 276973700
Change-Id: I6aaf0bc301510164676e9fff46a13542045a60d2
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/src/com/android/cellbroadcastreceiver/unit/CellBroadcastAlertAudioTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/src/com/android/cellbroadcastreceiver/unit/CellBroadcastAlertAudioTest.java b/tests/unit/src/com/android/cellbroadcastreceiver/unit/CellBroadcastAlertAudioTest.java index 724e97cd6..6cb54d98d 100644 --- a/tests/unit/src/com/android/cellbroadcastreceiver/unit/CellBroadcastAlertAudioTest.java +++ b/tests/unit/src/com/android/cellbroadcastreceiver/unit/CellBroadcastAlertAudioTest.java @@ -273,6 +273,8 @@ public class CellBroadcastAlertAudioTest extends waitUntilReady(); CellBroadcastAlertAudio audio = (CellBroadcastAlertAudio) getService(); + audio.stop(); + Field fieldTts = CellBroadcastAlertAudio.class.getDeclaredField("mTts"); fieldTts.setAccessible(true); TextToSpeech mockTts = mock(TextToSpeech.class); |