Merge "Tear down broadcast receiver in RemoteInputView and SmartReplyView tests"
This commit is contained in:
committed by
Android (Google) Code Review
commit
bb5b09512e
@@ -34,6 +34,7 @@ import com.android.systemui.statusbar.ExpandableNotificationRow;
|
||||
import com.android.systemui.statusbar.NotificationTestHelper;
|
||||
import com.android.systemui.statusbar.RemoteInputController;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -68,6 +69,11 @@ public class RemoteInputViewTest extends SysuiTestCase {
|
||||
mView = RemoteInputView.inflate(mContext, null, row.getEntry(), mController);
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
mContext.unregisterReceiver(mReceiver);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendRemoteInput_intentContainsResultsAndSource() throws InterruptedException {
|
||||
PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, 0,
|
||||
|
||||
@@ -37,6 +37,7 @@ import android.widget.LinearLayout;
|
||||
import com.android.systemui.R;
|
||||
import com.android.systemui.SysuiTestCase;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -76,6 +77,11 @@ public class SmartReplyViewTest extends SysuiTestCase {
|
||||
mSpacing = res.getDimensionPixelSize(R.dimen.smart_reply_button_spacing);
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
mContext.unregisterReceiver(mReceiver);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSendSmartReply_intentContainsResultsAndSource() throws InterruptedException {
|
||||
setRepliesFromRemoteInput(TEST_CHOICES);
|
||||
|
||||
Reference in New Issue
Block a user