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

Issue 2960533002: VR: Add support for time-aware unit tests. (Closed)

Created:
3 years, 6 months ago by cjgrant
Modified:
3 years, 5 months ago
Reviewers:
ymalik, bshe
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

VR: Add support for time-aware unit tests. Add an initial unit test for the transient WebVR warning. This CL is a lead-in to pulling common transient code out of scene manager and specific elements. Note that this development seemed to expose a bug in the mock task runner, in conjunction with timers. This bug is now blocked on that bug. BUG=735163 Review-Url: https://codereview.chromium.org/2960533002 Cr-Commit-Position: refs/heads/master@{#482294} Committed: https://chromium.googlesource.com/chromium/src/+/2f5d2f7b0721ace2fcbe408d8374f1c8277c71de

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
M chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc View 1 3 chunks +18 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (9 generated)
cjgrant
Folks, this lays groundwork for unit-testing of transient visibility (eg. toasts, transient URL bar, loading ...
3 years, 6 months ago (2017-06-24 02:14:31 UTC) #2
ymalik
lgtm https://codereview.chromium.org/2960533002/diff/1/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/2960533002/diff/1/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode157 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:157: // TODO(crbug.com/736558): Fast forwarding appears broken in conjunction ...
3 years, 5 months ago (2017-06-26 14:55:21 UTC) #7
bshe
lgtm https://codereview.chromium.org/2960533002/diff/1/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/2960533002/diff/1/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode107 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:107: base::ScopedMockTimeMessageLoopTaskRunner task_runner_; optional nit: should we define this ...
3 years, 5 months ago (2017-06-26 15:40:17 UTC) #8
cjgrant
Thanks guys, nits addressed. https://codereview.chromium.org/2960533002/diff/1/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/2960533002/diff/1/chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc#newcode107 chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc:107: base::ScopedMockTimeMessageLoopTaskRunner task_runner_; On 2017/06/26 15:40:17, ...
3 years, 5 months ago (2017-06-26 16:26:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2960533002/20001
3 years, 5 months ago (2017-06-26 16:26:59 UTC) #12
commit-bot: I haz the power
3 years, 5 months ago (2017-06-26 16:39:44 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2f5d2f7b0721ace2fcbe408d8374...

Powered by Google App Engine
This is Rietveld 408576698