Merge "Fix the NullPointerException" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
acd7bbefd1
@@ -313,4 +313,18 @@ public class MediaOutputIndicatorWorkerTest {
|
||||
|
||||
assertThat(mMediaOutputIndicatorWorker.isBroadcastSupported()).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isBroadcastSupported_noLocalMediaManager_returnFalse() {
|
||||
mMediaOutputIndicatorWorker.mLocalMediaManager = null;
|
||||
|
||||
assertThat(mMediaOutputIndicatorWorker.isBroadcastSupported()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isDeviceBroadcasting_noLocalMediaManager_returnFalse() {
|
||||
mMediaOutputIndicatorWorker.mLocalMediaManager = null;
|
||||
|
||||
assertThat(mMediaOutputIndicatorWorker.isDeviceBroadcasting()).isFalse();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user