use of android.media.audiopolicy.AudioPolicy in project robolectric by robolectric.
the class ShadowAudioManagerTest method isAnyAudioPolicyRegistered_afterPolicyRegistered_returnsTrue.
@Test
@Config(minSdk = P)
public void isAnyAudioPolicyRegistered_afterPolicyRegistered_returnsTrue() {
AudioPolicy audioPolicy = new AudioPolicy.Builder(appContext).build();
audioManager.registerAudioPolicy(audioPolicy);
assertThat(shadowOf(audioManager).isAnyAudioPolicyRegistered()).isTrue();
}
Aggregations