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

Issue 2529343002: [sensors] Fix flakiness in generic sensors tests (Closed)

Created:
4 years ago by shalamov
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sensors] Fix flakiness in generic sensors tests This patch fixes flakiness for generic sensors layout tests by resetting SensorProvider mock stub bindings at the end of the each layout test and re-initializing it when needed in SensorProviderProxy. Before this CL, if multiple sensor tests were executed by the same content shell instance, Frame's mojo interface overrides were reset after each test, yet SensorProviderProxy was not aware of it and kept using old SensorProvider mojom proxy. BUG=606766 Committed: https://crrev.com/8825a7140545d858daa36defc294668a79ecf1bf Cr-Commit-Position: refs/heads/master@{#435187}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixes for review comments from Mikhail #

Total comments: 2

Patch Set 3 : result => providerProxy #

Total comments: 6

Patch Set 4 : Fixes for review comments from Reilly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -18 lines) Patch
M third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js View 1 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp View 1 2 3 2 chunks +16 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProxy.cpp View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (19 generated)
shalamov
Please take a look.
4 years ago (2016-11-28 10:11:01 UTC) #4
haraken
LGTM on my side
4 years ago (2016-11-28 10:24:39 UTC) #5
Mikhail
https://codereview.chromium.org/2529343002/diff/1/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp (right): https://codereview.chromium.org/2529343002/diff/1/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp#newcode42 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp:42: result->initializeSensorProviderIfNeeded(frame); maybe split methods, like "isInitialized() const" + "initialize()", ...
4 years ago (2016-11-28 10:42:51 UTC) #6
shalamov
https://codereview.chromium.org/2529343002/diff/1/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp (right): https://codereview.chromium.org/2529343002/diff/1/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp#newcode42 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp:42: result->initializeSensorProviderIfNeeded(frame); On 2016/11/28 10:42:51, Mikhail wrote: > maybe split ...
4 years ago (2016-11-28 12:50:54 UTC) #11
Mikhail
lgtm https://codereview.chromium.org/2529343002/diff/20001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp (right): https://codereview.chromium.org/2529343002/diff/20001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp#newcode35 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp:35: SensorProviderProxy* result = static_cast<SensorProviderProxy*>( nit: pls rename 'result' ...
4 years ago (2016-11-28 13:16:08 UTC) #12
shalamov
https://codereview.chromium.org/2529343002/diff/20001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp (right): https://codereview.chromium.org/2529343002/diff/20001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp#newcode35 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp:35: SensorProviderProxy* result = static_cast<SensorProviderProxy*>( On 2016/11/28 13:16:08, Mikhail wrote: ...
4 years ago (2016-11-28 14:43:10 UTC) #17
Reilly Grant (use Gerrit)
lgtm with nits and a question that doesn't have to be resolved in this change. ...
4 years ago (2016-11-28 19:40:33 UTC) #20
shalamov
https://codereview.chromium.org/2529343002/diff/40001/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js File third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js (right): https://codereview.chromium.org/2529343002/diff/40001/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js#newcode294 third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js:294: } On 2016/11/28 19:40:33, Reilly Grant wrote: > nit: ...
4 years ago (2016-11-29 09:02:23 UTC) #21
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/2529343002/60001
4 years ago (2016-11-29 11:22:34 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/340186)
4 years ago (2016-11-29 14:24:37 UTC) #26
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/2529343002/60001
4 years ago (2016-11-30 07:31:28 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-30 09:02:48 UTC) #30
commit-bot: I haz the power
4 years ago (2016-11-30 09:05:11 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8825a7140545d858daa36defc294668a79ecf1bf
Cr-Commit-Position: refs/heads/master@{#435187}

Powered by Google App Engine
This is Rietveld 408576698