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

Issue 1186843002: Change root bounds in RenderWidgetHostViewAuraTest.ParentMovementUpdatesScreenRect (Closed)

Created:
5 years, 6 months ago by mharanczyk
Modified:
5 years, 6 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, glider+watch_chromium.org, bruening+watch_chromium.org, skobes
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change root bounds in RenderWidgetHostViewAuraTest.ParentMovementUpdatesScreenRect test to avoid initializing portrait mode static primary rotation and cause test failures on memory waterfall. It turns out that on normal run each test is run separately, but on memory waterfall they are run in such a way (in one process in bulk?) that if previous test sets up some static values they are preserved for all consecutive tests, creating hidden dependency between them. In this case values of primary portrait and landscape angles that are in RenderWidgetHostViewBase::GetOrientationTypeForDesktop are preserved between tests and primary_portrait_angle was set up to unexpected value (0) by test I've added, which broke RenderWidgetHostViewBaseTest.OrientationTypeForDesktop which expected to set those up by itself and test it. BUG=499914, 500011 Committed: https://crrev.com/a7f0ee1973ca033d3e5f4544cb3d3e6f5b582eec Cr-Commit-Position: refs/heads/master@{#334792}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -6 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M tools/valgrind/gtest_exclude/content_unittests.gtest.txt View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
mharanczyk
Please take a look, that is just simple test update to fix hidden dependency between ...
5 years, 6 months ago (2015-06-15 12:45:28 UTC) #2
sadrul
This ... seems unfortunate. I assume the issue is the statics in RenderWidgetHostViewBase::GetOrientationTypeForDesktop() that get ...
5 years, 6 months ago (2015-06-17 03:00:53 UTC) #3
oshima
On 2015/06/17 03:00:53, sadrul wrote: > This ... seems unfortunate. I assume the issue is ...
5 years, 6 months ago (2015-06-17 05:03:48 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1186843002/1
5 years, 6 months ago (2015-06-17 08:19:24 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 6 months ago (2015-06-17 08:45:34 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/a7f0ee1973ca033d3e5f4544cb3d3e6f5b582eec Cr-Commit-Position: refs/heads/master@{#334792}
5 years, 6 months ago (2015-06-17 08:46:52 UTC) #8
mharanczyk
5 years, 6 months ago (2015-06-17 09:07:32 UTC) #9
Message was sent while issue was closed.
On 2015/06/17 05:03:48, oshima wrote:
> On 2015/06/17 03:00:53, sadrul wrote:
> > This ... seems unfortunate. I assume the issue is the statics in
> > RenderWidgetHostViewBase::GetOrientationTypeForDesktop() that get set for
the
> > first test that calls it, and are re-used for subsequent tests? It would be
> nice
> > to fix that properly. (maybe introduce a ResetForTest or something like
that;
> > that is a pattern used in a few places). Would you mind filing a bug for
this?
> > (and maybe submit a patch too! :) )
> > 
> > For now, this LGTM
> 
> Many unittests runs in one process (not sure about content_unittests though).
> My guess is that the tests pass on normal bot thanks to sharding, and they
> just happen to run on different shards.
> 
> Just my guess, but I've seen similar issue in the past.

Reported crbug.com/501219 and committed this change as there are some actions
happening in reported bugs that I am afraid of :). I will submit a patch for it
today a bit later hopefully. I am still not certain if it is enough to reset
those values for RenderWidgetHostViewBaseTest.OrientationTypeForDesktop test
only, as it seems that most (if not all) of RWHVA tests are setting that up
indirectly, but lets discuss it when patch is reported.

Powered by Google App Engine
This is Rietveld 408576698