Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3486)

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/banners/InstallerDelegateTest.java

Issue 376873008: Improve Android Test Size Annotation support in test_runner.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reduce timeout to 10m Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/RepostFormWarningTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/banners/InstallerDelegateTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/banners/InstallerDelegateTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/banners/InstallerDelegateTest.java
index 7a0035e4e22b89341ce99d2dae2008fb5dadf35b..c829abe2f42d6b1b1b424f1ab9c7066319ad4ef9 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/banners/InstallerDelegateTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/banners/InstallerDelegateTest.java
@@ -7,6 +7,7 @@ package org.chromium.chrome.browser.banners;
import android.content.pm.PackageInfo;
import android.os.HandlerThread;
import android.test.mock.MockPackageManager;
+import android.test.suitebuilder.annotation.SmallTest;
import org.chromium.chrome.shell.ChromeShellTestBase;
import org.chromium.content.browser.test.util.Criteria;
@@ -115,6 +116,7 @@ public class InstallerDelegateTest extends ChromeShellTestBase
* Tests what happens when the InstallerDelegate detects that the package has successfully
* been installed.
*/
+ @SmallTest
public void testInstallSuccessful() throws InterruptedException {
mTestDelegate.setTimingForTests(1, 5000);
startMonitoring();
@@ -130,6 +132,7 @@ public class InstallerDelegateTest extends ChromeShellTestBase
/**
* Tests what happens when the InstallerDelegate task is canceled.
*/
+ @SmallTest
public void testInstallWaitUntilCancel() throws InterruptedException {
mTestDelegate.setTimingForTests(1, 5000);
startMonitoring();
@@ -145,6 +148,7 @@ public class InstallerDelegateTest extends ChromeShellTestBase
/**
* Tests what happens when the InstallerDelegate times out.
*/
+ @SmallTest
public void testInstallTimeout() throws InterruptedException {
mTestDelegate.setTimingForTests(1, 50);
startMonitoring();
@@ -154,6 +158,7 @@ public class InstallerDelegateTest extends ChromeShellTestBase
/**
* Makes sure that the runnable isn't called until returning from start().
*/
+ @SmallTest
public void testRunnableRaceCondition() throws InterruptedException {
mPackageManager.isInstalled = true;
mTestDelegate.setTimingForTests(1, 5000);
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/RepostFormWarningTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698