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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationProviderTest.java

Issue 744453002: Fix a bunch of Java Checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NeedsBraces to info Created 6 years, 1 month 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: content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationProviderTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationProviderTest.java b/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationProviderTest.java
index 69355ce8ea756a51a6335a0cb514801db1466138..75d36244b81726f70959d02af1cb677d011d5d8c 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationProviderTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationProviderTest.java
@@ -41,8 +41,8 @@ public class ScreenOrientationProviderTest extends ContentShellTestBase {
case ScreenOrientationValues.PORTRAIT_PRIMARY:
return mObserver.mOrientation == 0;
case ScreenOrientationValues.PORTRAIT_SECONDARY:
- return mObserver.mOrientation == 180 ||
- (ALLOW_0_FOR_180 && mObserver.mOrientation == 0);
+ return mObserver.mOrientation == 180
+ || (ALLOW_0_FOR_180 && mObserver.mOrientation == 0);
case ScreenOrientationValues.LANDSCAPE_PRIMARY:
return mObserver.mOrientation == 90;
case ScreenOrientationValues.LANDSCAPE_SECONDARY:
@@ -66,8 +66,8 @@ public class ScreenOrientationProviderTest extends ContentShellTestBase {
case ScreenOrientationValues.LANDSCAPE_PRIMARY:
return mObserver.mOrientation == 0;
case ScreenOrientationValues.LANDSCAPE_SECONDARY:
- return mObserver.mOrientation == 180 ||
- (ALLOW_0_FOR_180 && mObserver.mOrientation == 0);
+ return mObserver.mOrientation == 180
+ || (ALLOW_0_FOR_180 && mObserver.mOrientation == 0);
case ScreenOrientationValues.PORTRAIT:
return mObserver.mOrientation == 90 || mObserver.mOrientation == -90;
case ScreenOrientationValues.LANDSCAPE:
@@ -184,18 +184,18 @@ public class ScreenOrientationProviderTest extends ContentShellTestBase {
lockOrientationAndWait(ScreenOrientationValues.PORTRAIT_PRIMARY);
assertTrue(checkOrientationForLock(ScreenOrientationValues.PORTRAIT_PRIMARY));
- lockOrientationAndWait(ScreenOrientationValues.PORTRAIT_PRIMARY |
- ScreenOrientationValues.PORTRAIT_SECONDARY);
- assertTrue(checkOrientationForLock(ScreenOrientationValues.PORTRAIT_PRIMARY |
- ScreenOrientationValues.PORTRAIT_SECONDARY));
+ lockOrientationAndWait(ScreenOrientationValues.PORTRAIT_PRIMARY
+ | ScreenOrientationValues.PORTRAIT_SECONDARY);
+ assertTrue(checkOrientationForLock(ScreenOrientationValues.PORTRAIT_PRIMARY
+ | ScreenOrientationValues.PORTRAIT_SECONDARY));
lockOrientationAndWait(ScreenOrientationValues.PORTRAIT_SECONDARY);
assertTrue(checkOrientationForLock(ScreenOrientationValues.PORTRAIT_SECONDARY));
- lockOrientationAndWait(ScreenOrientationValues.PORTRAIT_PRIMARY |
- ScreenOrientationValues.PORTRAIT_SECONDARY);
- assertTrue(checkOrientationForLock(ScreenOrientationValues.PORTRAIT_PRIMARY |
- ScreenOrientationValues.PORTRAIT_SECONDARY));
+ lockOrientationAndWait(ScreenOrientationValues.PORTRAIT_PRIMARY
+ | ScreenOrientationValues.PORTRAIT_SECONDARY);
+ assertTrue(checkOrientationForLock(ScreenOrientationValues.PORTRAIT_PRIMARY
+ | ScreenOrientationValues.PORTRAIT_SECONDARY));
}
@MediumTest
@@ -204,18 +204,18 @@ public class ScreenOrientationProviderTest extends ContentShellTestBase {
lockOrientationAndWait(ScreenOrientationValues.LANDSCAPE_PRIMARY);
assertTrue(checkOrientationForLock(ScreenOrientationValues.LANDSCAPE_PRIMARY));
- lockOrientationAndWait(ScreenOrientationValues.LANDSCAPE_PRIMARY |
- ScreenOrientationValues.LANDSCAPE_SECONDARY);
- assertTrue(checkOrientationForLock(ScreenOrientationValues.LANDSCAPE_PRIMARY |
- ScreenOrientationValues.LANDSCAPE_SECONDARY));
+ lockOrientationAndWait(ScreenOrientationValues.LANDSCAPE_PRIMARY
+ | ScreenOrientationValues.LANDSCAPE_SECONDARY);
+ assertTrue(checkOrientationForLock(ScreenOrientationValues.LANDSCAPE_PRIMARY
+ | ScreenOrientationValues.LANDSCAPE_SECONDARY));
lockOrientationAndWait(ScreenOrientationValues.LANDSCAPE_SECONDARY);
assertTrue(checkOrientationForLock(ScreenOrientationValues.LANDSCAPE_SECONDARY));
- lockOrientationAndWait(ScreenOrientationValues.LANDSCAPE_PRIMARY |
- ScreenOrientationValues.LANDSCAPE_SECONDARY);
- assertTrue(checkOrientationForLock(ScreenOrientationValues.LANDSCAPE_PRIMARY |
- ScreenOrientationValues.LANDSCAPE_SECONDARY));
+ lockOrientationAndWait(ScreenOrientationValues.LANDSCAPE_PRIMARY
+ | ScreenOrientationValues.LANDSCAPE_SECONDARY);
+ assertTrue(checkOrientationForLock(ScreenOrientationValues.LANDSCAPE_PRIMARY
+ | ScreenOrientationValues.LANDSCAPE_SECONDARY));
}
// There is no point in testing the case where we try to lock to

Powered by Google App Engine
This is Rietveld 408576698