Don't bother resetting settings; they use testable context

Test: atest NotificationMenuRowTest
Change-Id: Iccb1844daab9a034e8bb08f0da44f03a04ba3f80
This commit is contained in:
Evan Laird
2019-04-04 11:07:53 -04:00
parent 9272fd2f57
commit d3701b1304

View File

@@ -42,7 +42,6 @@ import com.android.systemui.plugins.statusbar.NotificationMenuRowPlugin;
import com.android.systemui.statusbar.notification.collection.NotificationEntry;
import com.android.systemui.utils.leaks.LeakCheckedTest;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -65,13 +64,6 @@ public class NotificationMenuRowTest extends LeakCheckedTest {
when(mRow.getEntry()).thenReturn(entry);
}
@After
public void tearDown() {
Settings.Secure.putInt(mContext.getContentResolver(),
NOTIFICATION_NEW_INTERRUPTION_MODEL, 0);
}
@Test
public void testAttachDetach() {
NotificationMenuRowPlugin row = new NotificationMenuRow(mContext);