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

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

Issue 2847523002: Android: Remove GetApplicationContext part 4 (Closed)
Patch Set: Rebase and fix build Created 3 years, 7 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: content/public/android/javatests/src/org/chromium/content/browser/VideoFullscreenOrientationLockTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/VideoFullscreenOrientationLockTest.java b/content/public/android/javatests/src/org/chromium/content/browser/VideoFullscreenOrientationLockTest.java
index 489c2b3372814b9f90a5d25b41f1da0f1c43eff3..44de05a974652fddefe5f41c71379001af64bed2 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/VideoFullscreenOrientationLockTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/VideoFullscreenOrientationLockTest.java
@@ -135,7 +135,7 @@ public class VideoFullscreenOrientationLockTest {
@Feature({"VideoFullscreenOrientationLock"})
public void testEnterExitFullscreenWithControlsButton() throws Exception {
// TODO(johnme): Use RESTRICTION_TYPE_PHONE once crbug.com/673917 moves it out of chrome/.
- if (DeviceFormFactor.isTablet(mActivityTestRule.getActivity())) {
+ if (DeviceFormFactor.isTablet()) {
return;
}
@@ -166,7 +166,7 @@ public class VideoFullscreenOrientationLockTest {
@Feature({"VideoFullscreenOrientationLock"})
public void testEnterExitFullscreenWithAPI() throws Exception {
// TODO(johnme): Use RESTRICTION_TYPE_PHONE once crbug.com/673917 moves it out of chrome/.
- if (DeviceFormFactor.isTablet(mActivityTestRule.getActivity())) {
+ if (DeviceFormFactor.isTablet()) {
return;
}
@@ -193,7 +193,7 @@ public class VideoFullscreenOrientationLockTest {
@Feature({"VideoFullscreenOrientationLock"})
public void testExitFullscreenByRemovingVideo() throws Exception {
// TODO(johnme): Use RESTRICTION_TYPE_PHONE once crbug.com/673917 moves it out of chrome/.
- if (DeviceFormFactor.isTablet(mActivityTestRule.getActivity())) {
+ if (DeviceFormFactor.isTablet()) {
return;
}
@@ -221,7 +221,7 @@ public class VideoFullscreenOrientationLockTest {
@Feature({"VideoFullscreenOrientationLock"})
public void testExitFullscreenWithNavigation() throws Exception {
// TODO(johnme): Use RESTRICTION_TYPE_PHONE once crbug.com/673917 moves it out of chrome/.
- if (DeviceFormFactor.isTablet(mActivityTestRule.getActivity())) {
+ if (DeviceFormFactor.isTablet()) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698