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

Issue 2471103002: [sensors] Close mock sensor stubs after test is finished (Closed)

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

Description

[sensors] Close mock sensor stubs after test is finished Before this CL, mock sensor instance was reused by all tests. This CL adds code that closes mocked sensor stubs after each test, so that on the Blink side, SensorProxy will reset and release resources associated with the sensor. This allows to write layout tests that simulate different behavior for the sensor of the same type. BUG=606766 Committed: https://crrev.com/f0948b6c3cec6e8764fef47ed299d5a77414a987 Cr-Commit-Position: refs/heads/master@{#429564}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix for comment from Mikhail #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -8 lines) Patch
M third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js View 3 chunks +20 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProxy.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProxy.cpp View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
Mikhail
lgtm https://codereview.chromium.org/2471103002/diff/1/third_party/WebKit/Source/modules/sensor/SensorProxy.h File third_party/WebKit/Source/modules/sensor/SensorProxy.h (right): https://codereview.chromium.org/2471103002/diff/1/third_party/WebKit/Source/modules/sensor/SensorProxy.h#newcode85 third_party/WebKit/Source/modules/sensor/SensorProxy.h:85: String sanitizedMessage = String(), nit: pls add comment ...
4 years, 1 month ago (2016-11-02 14:30:20 UTC) #5
shalamov
Please take a look.
4 years, 1 month ago (2016-11-02 14:54:00 UTC) #9
haraken
LGTM
4 years, 1 month ago (2016-11-02 14:54:45 UTC) #10
shalamov
https://codereview.chromium.org/2471103002/diff/1/third_party/WebKit/Source/modules/sensor/SensorProxy.h File third_party/WebKit/Source/modules/sensor/SensorProxy.h (right): https://codereview.chromium.org/2471103002/diff/1/third_party/WebKit/Source/modules/sensor/SensorProxy.h#newcode85 third_party/WebKit/Source/modules/sensor/SensorProxy.h:85: String sanitizedMessage = String(), On 2016/11/02 14:30:20, Mikhail wrote: ...
4 years, 1 month ago (2016-11-02 14:55:01 UTC) #11
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/2471103002/20001
4 years, 1 month ago (2016-11-03 07:57:40 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years, 1 month ago (2016-11-03 09:58:07 UTC) #16
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/2471103002/20001
4 years, 1 month ago (2016-11-03 13:47:14 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-03 13:51:02 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 13:52:59 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f0948b6c3cec6e8764fef47ed299d5a77414a987
Cr-Commit-Position: refs/heads/master@{#429564}

Powered by Google App Engine
This is Rietveld 408576698