| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.content.browser; | 5 package org.chromium.content.browser; |
| 6 | 6 |
| 7 import android.test.suitebuilder.annotation.MediumTest; | 7 import android.test.suitebuilder.annotation.MediumTest; |
| 8 | 8 |
| 9 import org.chromium.base.ThreadUtils; | 9 import org.chromium.base.ThreadUtils; |
| 10 import org.chromium.base.test.util.Feature; | 10 import org.chromium.base.test.util.Feature; |
| 11 import org.chromium.base.test.util.UrlUtils; | 11 import org.chromium.base.test.util.UrlUtils; |
| 12 import org.chromium.content.browser.test.util.CriteriaHelper; | 12 import org.chromium.content.browser.test.util.CriteriaHelper; |
| 13 import org.chromium.content.browser.test.util.MockOrientationObserver; | 13 import org.chromium.content.browser.test.util.MockOrientationObserver; |
| 14 import org.chromium.content.browser.test.util.OrientationChangeObserverCriteria; | 14 import org.chromium.content.browser.test.util.OrientationChangeObserverCriteria; |
| 15 import org.chromium.content.common.ScreenOrientationValues; | 15 import org.chromium.content_public.common.ScreenOrientationValues; |
| 16 import org.chromium.content_shell_apk.ContentShellActivity; | 16 import org.chromium.content_shell_apk.ContentShellActivity; |
| 17 import org.chromium.content_shell_apk.ContentShellTestBase; | 17 import org.chromium.content_shell_apk.ContentShellTestBase; |
| 18 | 18 |
| 19 /** | 19 /** |
| 20 * Tests for ScreenOrientationListener and its implementations. | 20 * Tests for ScreenOrientationListener and its implementations. |
| 21 */ | 21 */ |
| 22 public class ScreenOrientationProviderTest extends ContentShellTestBase { | 22 public class ScreenOrientationProviderTest extends ContentShellTestBase { |
| 23 | 23 |
| 24 // For some reasons build bots are not able to lock to 180 degrees. This | 24 // For some reasons build bots are not able to lock to 180 degrees. This |
| 25 // boolean is here to make the false negative go away in that situation. | 25 // boolean is here to make the false negative go away in that situation. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 } | 168 } |
| 169 | 169 |
| 170 // There is no point in testing the case where we try to lock to | 170 // There is no point in testing the case where we try to lock to |
| 171 // PORTRAIT_PRIMARY | PORTRAIT_SECONDARY | LANDSCAPE_PRIMARY | LANDSCAPE_SEC
ONDARY | 171 // PORTRAIT_PRIMARY | PORTRAIT_SECONDARY | LANDSCAPE_PRIMARY | LANDSCAPE_SEC
ONDARY |
| 172 // because with the device being likely flat during the test, locking to tha
t | 172 // because with the device being likely flat during the test, locking to tha
t |
| 173 // will be a no-op. | 173 // will be a no-op. |
| 174 | 174 |
| 175 // We can't test unlock because the device is likely flat during the test | 175 // We can't test unlock because the device is likely flat during the test |
| 176 // and in that situation unlocking is a no-op. | 176 // and in that situation unlocking is a no-op. |
| 177 } | 177 } |
| OLD | NEW |