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

Commit 3c1f0214 authored by Aaron Heuckroth's avatar Aaron Heuckroth
Browse files

Switch NotificationSwipeHelperTest to use RunWithLooper.

Test: Automated tests should pass (without flaking!)
Change-Id: I7471452c096d87f1fe8021899fdb535952d325a1
parent ee8fbc72
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -32,8 +32,8 @@ import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.os.Handler;
import android.service.notification.StatusBarNotification;
import android.support.test.filters.SmallTest;
import android.support.test.runner.AndroidJUnit4;
import android.testing.UiThreadTest;
import android.testing.AndroidTestingRunner;
import android.testing.TestableLooper;
import android.view.MotionEvent;
import android.view.View;

@@ -44,7 +44,6 @@ import com.android.systemui.plugins.statusbar.NotificationSwipeActionHelper.Snoo
import com.android.systemui.statusbar.notification.row.ExpandableNotificationRow;

import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -56,9 +55,8 @@ import org.mockito.stubbing.Answer;
 * Tests for {@link NotificationSwipeHelper}.
 */
@SmallTest
@Ignore
@RunWith(AndroidJUnit4.class)
@UiThreadTest
@RunWith(AndroidTestingRunner.class)
@TestableLooper.RunWithLooper()
public class NotificationSwipeHelperTest extends SysuiTestCase {

    private NotificationSwipeHelper mSwipeHelper;