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

Unified Diff: chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationTestUtils.java

Issue 2815453003: Create ChromeActivityTestRule for converting JUnit4 tests (Closed)
Patch Set: nits and rebase Created 3 years, 8 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/test/android/javatests/src/org/chromium/chrome/test/ChromeJUnit4ClassRunner.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationTestUtils.java
diff --git a/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationTestUtils.java b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationTestUtils.java
index 73296853f233893560b7bbc985e10979bfe26429..b7402e37b0ebdc5d325aac51945f05ccc1af6c2d 100644
--- a/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationTestUtils.java
+++ b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ApplicationTestUtils.java
@@ -39,8 +39,7 @@ public class ApplicationTestUtils {
// TODO(jbudorick): fix deprecation warning crbug.com/537347
@SuppressWarnings("deprecation")
- public static void setUp(Context context, boolean clearAppData)
- throws Exception {
+ public static void setUp(Context context, boolean clearAppData) {
if (clearAppData) {
// Clear data and remove any tasks listed in Android's Overview menu between test runs.
clearAppData(context);
@@ -158,7 +157,7 @@ public class ApplicationTestUtils {
/** Finishes all tasks Chrome has listed in Android's Overview. */
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
- public static void finishAllChromeTasks(final Context context) throws Exception {
+ public static void finishAllChromeTasks(final Context context) {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
public void run() {
« no previous file with comments | « chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeJUnit4ClassRunner.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698