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

Issue 2873043002: VrShell: Add test for fullscreen transitions. (Closed)

Created:
3 years, 7 months ago by amp
Modified:
3 years, 7 months ago
Reviewers:
bsheedy, cjgrant
CC:
chromium-reviews, feature-vr-reviews_chromium.org, tiborg
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

VrShell: Add test for fullscreen transitions. BUG=661762

Patch Set 1 #

Patch Set 2 : oops, forgot to rebase #

Total comments: 6

Patch Set 3 : fix a missed method renaming and add full color check #

Total comments: 6

Patch Set 4 : rebase #

Patch Set 5 : switch to using scene methods instead of via manager friend internals #

Patch Set 6 : rebase #

Total comments: 5

Patch Set 7 : Add enum names and update tests to use those instead #

Patch Set 8 : missed a scoped enum #

Patch Set 9 : rebase to use debug id enum instead of name one I created #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -0 lines) Patch
M chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 4 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.cc View 1 2 3 4 5 6 7 8 8 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +75 lines, -0 lines 7 comments Download

Messages

Total messages: 24 (6 generated)
amp
This required adding a macro to the ui scene manager to allow for friend access ...
3 years, 7 months ago (2017-05-09 21:19:03 UTC) #4
amp
On 2017/05/09 21:19:03, amp wrote: > This required adding a macro to the ui scene ...
3 years, 7 months ago (2017-05-09 21:24:42 UTC) #5
bsheedy
https://codereview.chromium.org/2873043002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc File chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc (right): https://codereview.chromium.org/2873043002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode105 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:105: // TODO(amp): Check more than just the red value. ...
3 years, 7 months ago (2017-05-09 21:27:09 UTC) #7
amp
https://codereview.chromium.org/2873043002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc File chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc (right): https://codereview.chromium.org/2873043002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode105 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:105: // TODO(amp): Check more than just the red value. ...
3 years, 7 months ago (2017-05-09 21:36:24 UTC) #8
amp
https://codereview.chromium.org/2873043002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc File chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc (right): https://codereview.chromium.org/2873043002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode105 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:105: // TODO(amp): Check more than just the red value. ...
3 years, 7 months ago (2017-05-09 22:47:38 UTC) #9
cjgrant
https://codereview.chromium.org/2873043002/diff/40001/chrome/browser/android/vr_shell/ui_scene_manager.h File chrome/browser/android/vr_shell/ui_scene_manager.h (right): https://codereview.chromium.org/2873043002/diff/40001/chrome/browser/android/vr_shell/ui_scene_manager.h#newcode79 chrome/browser/android/vr_shell/ui_scene_manager.h:79: FRIEND_TEST_ALL_PREFIXES(UiSceneManagerTest, UiUpdatesForFullscreen); See other comments on how we could ...
3 years, 7 months ago (2017-05-10 02:45:00 UTC) #10
cjgrant
https://codereview.chromium.org/2873043002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc File chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc (right): https://codereview.chromium.org/2873043002/diff/20001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode105 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:105: // TODO(amp): Check more than just the red value. ...
3 years, 7 months ago (2017-05-10 14:08:36 UTC) #11
amp
Thanks for the suggestions. I'll take another pass and update the tests to see what ...
3 years, 7 months ago (2017-05-10 16:05:55 UTC) #12
amp
PTAL. Latest patch doesn't require friend access to manager internals.
3 years, 7 months ago (2017-05-10 17:18:07 UTC) #13
cjgrant
https://codereview.chromium.org/2873043002/diff/100001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc File chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc (right): https://codereview.chromium.org/2873043002/diff/100001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode77 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:77: InSequence s; I think you said removing this was ...
3 years, 7 months ago (2017-05-10 18:50:22 UTC) #15
amp
https://codereview.chromium.org/2873043002/diff/100001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc File chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc (right): https://codereview.chromium.org/2873043002/diff/100001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode77 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:77: InSequence s; On 2017/05/10 18:50:22, cjgrant wrote: > I ...
3 years, 7 months ago (2017-05-10 21:43:43 UTC) #16
cjgrant
https://codereview.chromium.org/2873043002/diff/100001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc File chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc (right): https://codereview.chromium.org/2873043002/diff/100001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode118 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:118: EXPECT_EQ(initialBackground.r, scene_->GetBackgroundColor().r); Revisiting the helper method approach here, see ...
3 years, 7 months ago (2017-05-17 14:40:11 UTC) #17
amp
Ran out of time to get this working before I have to shut off my ...
3 years, 7 months ago (2017-05-18 22:10:59 UTC) #18
amp
PTAL. This should be ready to go in now. I added a few more elements ...
3 years, 7 months ago (2017-05-23 18:22:45 UTC) #19
cjgrant
https://codereview.chromium.org/2873043002/diff/160001/chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h File chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h (right): https://codereview.chromium.org/2873043002/diff/160001/chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h#newcode19 chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h:19: kGrid, Maybe kFloorGrid just to be clear? https://codereview.chromium.org/2873043002/diff/160001/chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h#newcode20 chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h:20: ...
3 years, 7 months ago (2017-05-23 18:58:11 UTC) #21
amp
Fixes are in latest patch set of https://codereview.chromium.org/2887773008/ https://codereview.chromium.org/2873043002/diff/160001/chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h File chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h (right): https://codereview.chromium.org/2873043002/diff/160001/chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h#newcode19 chrome/browser/android/vr_shell/ui_elements/ui_element_debug_id.h:19: kGrid, ...
3 years, 7 months ago (2017-05-23 20:56:02 UTC) #22
cjgrant
https://codereview.chromium.org/2873043002/diff/160001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc File chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc (right): https://codereview.chromium.org/2873043002/diff/160001/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode179 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:179: // Ignore elements not in the set. On 2017/05/23 ...
3 years, 7 months ago (2017-05-23 21:27:31 UTC) #23
amp
3 years, 7 months ago (2017-05-23 21:51:31 UTC) #24
On 2017/05/23 21:27:31, cjgrant wrote:
>
https://codereview.chromium.org/2873043002/diff/160001/chrome/browser/android...
> File chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc (right):
> 
>
https://codereview.chromium.org/2873043002/diff/160001/chrome/browser/android...
> chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:179: // Ignore
> elements not in the set.
> On 2017/05/23 20:56:02, amp wrote:
> > On 2017/05/23 18:58:11, cjgrant wrote:
> > > Since this test is focused on fullscreen, why ignore some elements?  Why
not
> > > assert that nothing other than the content quad is visible?  If someone
adds
> > > another element to fullscreen, they should update this test.  This would
> also
> > > kill the need for "hidden_in_fullscreen".  Thoughts?
> > 
> > I went this way because not every element has a debug id.  Multiple elements
> > could be under kNone and unless they are all supposed to be hidden it could
be
> a
> > pain to enumerate them all (not to mention the tests won't be helpful in
> > explaining which element caused the problem).
> > 
> > I've updated the comments to better explain this, but let me know if you
want
> to
> > fully enumerate all the elements so we don't need a check like this.
> 
> But in fullscreen, there are only a few things visible - the quad, floor,
> ceiling and grid, right?  And, you've just assigned ids to each of those.  It
> seems totally reasonable that if an element is going to be visible, that it
have
> a debug id.
> 
> Also, part of this test is making sure that stuff you don't want showing,
> doesn't show.  If another element comes along, is accidentally visible in
> fullscreen, but doesn't get added to the "hidden in fullscreen" set, this test
> won't catch it, right?

Updated in other patchset to make sure we are listing all the expected visible
elements (I was missing the backplane) and this way a new element added in the
future will have to update this test.

Powered by Google App Engine
This is Rietveld 408576698