Fix the test fail of the MenuAnimationControllerTest.
Root cause: looper must not be null Solution: Added looper into Fix: 255338428 Test: atest MenuAnimationControllerTest Change-Id: I54a26f4b93c27a6ea1dd4500e65ccbf371de1aa5
This commit is contained in:
@@ -20,6 +20,7 @@ import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import android.graphics.PointF;
|
||||
import android.testing.AndroidTestingRunner;
|
||||
import android.testing.TestableLooper;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import androidx.test.filters.SmallTest;
|
||||
@@ -32,6 +33,7 @@ import org.junit.runner.RunWith;
|
||||
|
||||
/** Tests for {@link MenuAnimationController}. */
|
||||
@RunWith(AndroidTestingRunner.class)
|
||||
@TestableLooper.RunWithLooper(setAsMainLooper = true)
|
||||
@SmallTest
|
||||
public class MenuAnimationControllerTest extends SysuiTestCase {
|
||||
private MenuView mMenuView;
|
||||
|
||||
Reference in New Issue
Block a user