diff options
author | vadimt <vadimt@google.com> | 2019-04-25 17:29:05 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-04-25 17:34:23 -0700 |
commit | 55fa21eb9562820e885143ef52c5ce76b204e0e4 (patch) | |
tree | 30bb559ff0400b79d3e2bba2ca49a0732745ad6a /quickstep/tests/src | |
parent | 1e4a43ac6730d6efb86d7a6c23eacc558371cadc (diff) | |
download | android_packages_apps_Trebuchet-55fa21eb9562820e885143ef52c5ce76b204e0e4.tar.gz android_packages_apps_Trebuchet-55fa21eb9562820e885143ef52c5ce76b204e0e4.tar.bz2 android_packages_apps_Trebuchet-55fa21eb9562820e885143ef52c5ce76b204e0e4.zip |
Annotating DigitalWellBeingToastTest so that it actually runs in lab :)
And starting a test app :)))))
Change-Id: I3b326a40651b0e4293dee26e4ef5f991cd7b7d0d
Diffstat (limited to 'quickstep/tests/src')
-rw-r--r-- | quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java b/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java index 87981571b..70f9c90da 100644 --- a/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java +++ b/quickstep/tests/src/com/android/quickstep/DigitalWellBeingToastTest.java @@ -12,21 +12,29 @@ import android.app.PendingIntent; import android.app.usage.UsageStatsManager; import android.content.Intent; +import androidx.test.filters.LargeTest; +import androidx.test.runner.AndroidJUnit4; + import com.android.launcher3.Launcher; import com.android.quickstep.views.DigitalWellBeingToast; import com.android.quickstep.views.RecentsView; import com.android.quickstep.views.TaskView; import org.junit.Test; +import org.junit.runner.RunWith; import java.time.Duration; +@LargeTest +@RunWith(AndroidJUnit4.class) public class DigitalWellBeingToastTest extends AbstractQuickStepTest { private static final String CALCULATOR_PACKAGE = resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR); @Test public void testToast() throws Exception { + startAppFast(CALCULATOR_PACKAGE); + final UsageStatsManager usageStatsManager = mTargetContext.getSystemService(UsageStatsManager.class); final int observerId = 0; |