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

Issue 608503003: Properly interpret orientation provider/listener test values. (Closed)

Created:
6 years, 2 months ago by gordanac
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, petar.jovanovic, Paul Lind
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Properly interpret orientation provider/listener test results. This change makes sure orientation test results are properly interpreted for devices which natural orientation is landscape. Existing implementation assumed portrait as device natural orientation. BUG= TEST=Run ContentShell instrumentation test. ./build/android/test_runner.py instrumentation --test-apk=ContentShellTest --release --test-filter=ScreenOrientation* Committed: https://crrev.com/d8b82f91d5658b31eb6139d5e9173b91ab566156 Cr-Commit-Position: refs/heads/master@{#297670}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressing code review comments. #

Total comments: 4

Patch Set 3 : Set mNaturalOrientation default value to ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -37 lines) Patch
M content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java View 1 2 5 chunks +81 lines, -18 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationProviderTest.java View 1 2 4 chunks +70 lines, -19 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
gordanac
Please take a look. This change makes orientation tests pass on tablets as well.
6 years, 2 months ago (2014-09-25 17:53:00 UTC) #2
mlamouri (slow - plz ping)
Thanks for the patches! It should be good to go with the below comments applied. ...
6 years, 2 months ago (2014-09-29 10:54:36 UTC) #3
gordanac
Patch set 2 uploaded. Please take a look. https://codereview.chromium.org/608503003/diff/1/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java File content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java (right): https://codereview.chromium.org/608503003/diff/1/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java#newcode37 content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java:37: private ...
6 years, 2 months ago (2014-10-01 16:22:44 UTC) #4
mlamouri (slow - plz ping)
lgtm with nits below https://codereview.chromium.org/608503003/diff/20001/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java File content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java (right): https://codereview.chromium.org/608503003/diff/20001/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java#newcode35 content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java:35: private int mNaturalOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; ...
6 years, 2 months ago (2014-10-01 16:30:33 UTC) #5
gordanac
https://codereview.chromium.org/608503003/diff/20001/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java File content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java (right): https://codereview.chromium.org/608503003/diff/20001/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java#newcode35 content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java:35: private int mNaturalOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; On 2014/10/01 16:30:33, Mounir ...
6 years, 2 months ago (2014-10-01 16:44:22 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/608503003/40001
6 years, 2 months ago (2014-10-01 16:46:52 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 26c0b76d645b3654147c5848b29925b3c1d28816
6 years, 2 months ago (2014-10-01 17:35:05 UTC) #9
commit-bot: I haz the power
6 years, 2 months ago (2014-10-01 17:35:44 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d8b82f91d5658b31eb6139d5e9173b91ab566156
Cr-Commit-Position: refs/heads/master@{#297670}

Powered by Google App Engine
This is Rietveld 408576698