Merge "Add unaudited exported flag to exposed runtime receivers"

This commit is contained in:
TreeHugger Robot
2022-11-04 08:13:28 +00:00
committed by Android (Google) Code Review
7 changed files with 14 additions and 7 deletions

View File

@@ -99,7 +99,8 @@ public class BluetoothDeviceNamePreferenceControllerTest {
@Test
public void testOnStop_receiverUnregistered() {
// register it first
mContext.registerReceiver(mController.mReceiver, null);
mContext.registerReceiver(mController.mReceiver, null,
Context.RECEIVER_EXPORTED/*UNAUDITED*/);
mController.onStop();
verify(mContext).unregisterReceiver(mController.mReceiver);