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

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

Issue 455523002: [Checkstyle] Update static variable and constant names to match style guides. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yfriendman's nits Created 6 years, 4 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
Index: chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarTestAnimationListener.java
diff --git a/chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarTestAnimationListener.java b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarTestAnimationListener.java
index 0133f42efd5a73a954e2b617affd87a8fec3a05d..bbdb83c924d90c603e69ad1160a0d71d51f43d83 100644
--- a/chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarTestAnimationListener.java
+++ b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarTestAnimationListener.java
@@ -15,7 +15,7 @@ import java.util.concurrent.TimeUnit;
*/
public class InfoBarTestAnimationListener implements InfoBarContainer.InfoBarAnimationListener {
- private static long WAIT_MILLIS = TimeUnit.SECONDS.toMillis(5);
+ private static final long WAIT_MILLIS = TimeUnit.SECONDS.toMillis(5);
private static class ConditionalWait {
private volatile Boolean mCondition;
@@ -33,7 +33,7 @@ public class InfoBarTestAnimationListener implements InfoBarContainer.InfoBarAni
* @return true if the condition becomes true before the specified {@code millis}.
*/
public boolean waitAndExpire(long millis) throws InterruptedException {
- synchronized(mLock) {
+ synchronized (mLock) {
while (!mCondition && millis > 0) {
long start = SystemClock.elapsedRealtime();
mLock.wait(millis);
@@ -46,7 +46,7 @@ public class InfoBarTestAnimationListener implements InfoBarContainer.InfoBarAni
}
public void set(boolean value) {
- synchronized(mLock) {
+ synchronized (mLock) {
mCondition = value;
if (value) {
mLock.notify();

Powered by Google App Engine
This is Rietveld 408576698