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

Commit bb5b0951 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Tear down broadcast receiver in RemoteInputView and SmartReplyView tests"

parents 465f2c7b 7ef7812c
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -34,6 +34,7 @@ import com.android.systemui.statusbar.ExpandableNotificationRow;
import com.android.systemui.statusbar.NotificationTestHelper;
import com.android.systemui.statusbar.NotificationTestHelper;
import com.android.systemui.statusbar.RemoteInputController;
import com.android.systemui.statusbar.RemoteInputController;


import org.junit.After;
import org.junit.Before;
import org.junit.Before;
import org.junit.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runner.RunWith;
@@ -68,6 +69,11 @@ public class RemoteInputViewTest extends SysuiTestCase {
        mView = RemoteInputView.inflate(mContext, null, row.getEntry(), mController);
        mView = RemoteInputView.inflate(mContext, null, row.getEntry(), mController);
    }
    }


    @After
    public void tearDown() {
        mContext.unregisterReceiver(mReceiver);
    }

    @Test
    @Test
    public void testSendRemoteInput_intentContainsResultsAndSource() throws InterruptedException {
    public void testSendRemoteInput_intentContainsResultsAndSource() throws InterruptedException {
        PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, 0,
        PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, 0,
+6 −0
Original line number Original line Diff line number Diff line
@@ -37,6 +37,7 @@ import android.widget.LinearLayout;
import com.android.systemui.R;
import com.android.systemui.R;
import com.android.systemui.SysuiTestCase;
import com.android.systemui.SysuiTestCase;


import org.junit.After;
import org.junit.Before;
import org.junit.Before;
import org.junit.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runner.RunWith;
@@ -76,6 +77,11 @@ public class SmartReplyViewTest extends SysuiTestCase {
        mSpacing = res.getDimensionPixelSize(R.dimen.smart_reply_button_spacing);
        mSpacing = res.getDimensionPixelSize(R.dimen.smart_reply_button_spacing);
    }
    }


    @After
    public void tearDown() {
        mContext.unregisterReceiver(mReceiver);
    }

    @Test
    @Test
    public void testSendSmartReply_intentContainsResultsAndSource() throws InterruptedException {
    public void testSendSmartReply_intentContainsResultsAndSource() throws InterruptedException {
        setRepliesFromRemoteInput(TEST_CHOICES);
        setRepliesFromRemoteInput(TEST_CHOICES);