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

Commit f64837f1 authored by Rhed Jao's avatar Rhed Jao Committed by Automerger Merge Worker
Browse files

Fixes BugreportReceiverTest failed am: e9a2038f am: dfa52cd6

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1532903

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9c440c0fb7b6a92cf20349f30cad299bb3b71dcc
parents bf05d69e dfa52cd6
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -576,9 +576,10 @@ public class BugreportReceiverTest {
     */
    private void sendBugreportStarted() throws Exception {
        Intent intent = new Intent(INTENT_BUGREPORT_REQUESTED);
        intent.setPackage("com.android.shell");
        intent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        mContext.sendBroadcast(intent);
        // Ideally, we should invoke BugreportRequestedReceiver by sending
        // INTENT_BUGREPORT_REQUESTED. But the intent has been protected broadcast by the system
        // starting from S.
        new BugreportRequestedReceiver().onReceive(mContext, intent);

        ArgumentCaptor<IDumpstateListener> listenerCap = ArgumentCaptor.forClass(
                IDumpstateListener.class);