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

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

Issue 1228353007: Move InstallerDelegateTest from ChromeShellTest to ChromePublicTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | chrome/android/javatests/src/org/chromium/chrome/browser/banners/InstallerDelegateTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/banners/InstallerDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/banners/InstallerDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/banners/InstallerDelegate.java
index a773082283e5be0495c17a0917ff8c853c7d584f..71086e8db23c387e45b02c052dc02970366ff1bb 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/banners/InstallerDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/banners/InstallerDelegate.java
@@ -11,6 +11,8 @@ import android.os.Looper;
import android.os.SystemClock;
import android.text.TextUtils;
+import org.chromium.base.VisibleForTesting;
+
import java.util.List;
/**
@@ -131,6 +133,7 @@ public class InstallerDelegate implements Runnable {
* Checks to see if the Runnable will continue scheduling itself.
* @return True if the runnable is still being scheduled.
*/
+ @VisibleForTesting
boolean isRunning() {
return mIsRunning;
}
@@ -140,6 +143,7 @@ public class InstallerDelegate implements Runnable {
* @param msBetween How long to wait between executions of the Runnable.
* @param msMax How long to wait before giving up.
*/
+ @VisibleForTesting
void setTimingForTests(long msBetween, long msMax) {
mMsBetweenRuns = msBetween;
mMsMaximumWaitingTime = msMax;
« no previous file with comments | « no previous file | chrome/android/javatests/src/org/chromium/chrome/browser/banners/InstallerDelegateTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698