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

Issue 2306333002: [sensors] Add Generic Sensor platform unit tests. (Closed)

Created:
4 years, 3 months ago by maksims (do not use this acc)
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sensors] Add Generic Sensor platform unit tests. This patch adds platform side unit tests for generic sensor API. BUG=606766 Committed: https://crrev.com/d14d9caac146d4fb9cec5888448a8728a9326c72 Cr-Commit-Position: refs/heads/master@{#421495}

Patch Set 1 : Generic Sensor Unittest #

Total comments: 24

Patch Set 2 : Comments #

Total comments: 25

Patch Set 3 : Mikhail's comments #

Total comments: 36

Patch Set 4 : Rebased, Tim's comments #

Patch Set 5 : More comments #

Patch Set 6 : mock->fake naming #

Total comments: 5

Patch Set 7 : New test and config map getter instead of friend class #

Total comments: 4

Patch Set 8 : Tim's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+489 lines, -0 lines) Patch
M device/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M device/generic_sensor/BUILD.gn View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
A device/generic_sensor/fake_platform_sensor.h View 1 2 3 4 5 6 1 chunk +47 lines, -0 lines 0 comments Download
A device/generic_sensor/fake_platform_sensor.cc View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A device/generic_sensor/fake_platform_sensor_provider.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
A device/generic_sensor/fake_platform_sensor_provider.cc View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
M device/generic_sensor/platform_sensor.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A device/generic_sensor/platform_sensor_provider_unittest.cc View 1 2 3 4 5 6 7 1 chunk +318 lines, -0 lines 0 comments Download

Messages

Total messages: 134 (114 generated)
maksims (do not use this acc)
please review
4 years, 3 months ago (2016-09-05 10:51:50 UTC) #26
maksims (do not use this acc)
gentle reminder
4 years, 3 months ago (2016-09-07 06:03:39 UTC) #34
shalamov
https://codereview.chromium.org/2306333002/diff/100001/device/generic_sensor/mock_platform_sensor.cc File device/generic_sensor/mock_platform_sensor.cc (right): https://codereview.chromium.org/2306333002/diff/100001/device/generic_sensor/mock_platform_sensor.cc#newcode38 device/generic_sensor/mock_platform_sensor.cc:38: if (configuration.frequency() > kMaxFrequencyValue) return configuration.frequency() <= kMaxFrequencyValue; ? ...
4 years, 3 months ago (2016-09-07 09:53:01 UTC) #35
Mikhail
Pls. exclude the other CL's files, just put dependency to https://codereview.chromium.org/2284613002/ instead. https://codereview.chromium.org/2306333002/diff/100001/device/generic_sensor/mock_platform_sensor.cc File device/generic_sensor/mock_platform_sensor.cc ...
4 years, 3 months ago (2016-09-07 10:46:19 UTC) #36
maksims (do not use this acc)
https://codereview.chromium.org/2306333002/diff/100001/device/generic_sensor/mock_platform_sensor.cc File device/generic_sensor/mock_platform_sensor.cc (right): https://codereview.chromium.org/2306333002/diff/100001/device/generic_sensor/mock_platform_sensor.cc#newcode38 device/generic_sensor/mock_platform_sensor.cc:38: if (configuration.frequency() > kMaxFrequencyValue) On 2016/09/07 10:46:19, Mikhail wrote: ...
4 years, 3 months ago (2016-09-09 10:39:06 UTC) #52
maksims (do not use this acc)
gentle reminder
4 years, 3 months ago (2016-09-12 07:27:54 UTC) #53
Mikhail
https://codereview.chromium.org/2306333002/diff/180001/device/generic_sensor/mock_platform_sensor.h File device/generic_sensor/mock_platform_sensor.h (right): https://codereview.chromium.org/2306333002/diff/180001/device/generic_sensor/mock_platform_sensor.h#newcode24 device/generic_sensor/mock_platform_sensor.h:24: void NotifySensorReadingChanged(); wouldn't 'using PlatformSensor::NotifySensorReadingChanged()' help here? https://codereview.chromium.org/2306333002/diff/180001/device/generic_sensor/mock_platform_sensor.h#newcode25 device/generic_sensor/mock_platform_sensor.h:25: ...
4 years, 3 months ago (2016-09-12 08:12:44 UTC) #54
maksims (do not use this acc)
https://codereview.chromium.org/2306333002/diff/180001/device/generic_sensor/mock_platform_sensor.h File device/generic_sensor/mock_platform_sensor.h (right): https://codereview.chromium.org/2306333002/diff/180001/device/generic_sensor/mock_platform_sensor.h#newcode24 device/generic_sensor/mock_platform_sensor.h:24: void NotifySensorReadingChanged(); On 2016/09/12 08:12:43, Mikhail wrote: > wouldn't ...
4 years, 3 months ago (2016-09-13 08:01:02 UTC) #64
Mikhail
lgtm pls update the CL description (it does not contain files from https://codereview.chromium.org/2284613002/ any more) ...
4 years, 3 months ago (2016-09-13 10:31:17 UTC) #65
timvolodine
https://codereview.chromium.org/2306333002/diff/220001/device/generic_sensor/mock_platform_sensor.h File device/generic_sensor/mock_platform_sensor.h (right): https://codereview.chromium.org/2306333002/diff/220001/device/generic_sensor/mock_platform_sensor.h#newcode12 device/generic_sensor/mock_platform_sensor.h:12: class MockPlatformSensor : public PlatformSensor { FakePlatformSensor? https://codereview.chromium.org/2306333002/diff/220001/device/generic_sensor/mock_platform_sensor.h#newcode48 device/generic_sensor/mock_platform_sensor.h:48: ...
4 years, 3 months ago (2016-09-13 19:38:53 UTC) #66
maksims (do not use this acc)
https://codereview.chromium.org/2306333002/diff/220001/device/generic_sensor/mock_platform_sensor.h File device/generic_sensor/mock_platform_sensor.h (right): https://codereview.chromium.org/2306333002/diff/220001/device/generic_sensor/mock_platform_sensor.h#newcode12 device/generic_sensor/mock_platform_sensor.h:12: class MockPlatformSensor : public PlatformSensor { On 2016/09/13 19:38:53, ...
4 years, 3 months ago (2016-09-16 09:22:20 UTC) #102
timvolodine
https://codereview.chromium.org/2306333002/diff/220001/device/generic_sensor/mock_platform_sensor_provider.h File device/generic_sensor/mock_platform_sensor_provider.h (right): https://codereview.chromium.org/2306333002/diff/220001/device/generic_sensor/mock_platform_sensor_provider.h#newcode12 device/generic_sensor/mock_platform_sensor_provider.h:12: class MockPlatformSensorProvider : public PlatformSensorProvider { On 2016/09/16 09:22:19, ...
4 years, 3 months ago (2016-09-19 17:14:29 UTC) #105
maksims (do not use this acc)
https://codereview.chromium.org/2306333002/diff/220001/device/generic_sensor/mock_platform_sensor_provider.h File device/generic_sensor/mock_platform_sensor_provider.h (right): https://codereview.chromium.org/2306333002/diff/220001/device/generic_sensor/mock_platform_sensor_provider.h#newcode12 device/generic_sensor/mock_platform_sensor_provider.h:12: class MockPlatformSensorProvider : public PlatformSensorProvider { On 2016/09/19 17:14:29, ...
4 years, 2 months ago (2016-09-21 11:05:19 UTC) #112
timvolodine
thanks, two more comments below https://codereview.chromium.org/2306333002/diff/400001/device/generic_sensor/platform_sensor.h File device/generic_sensor/platform_sensor.h (right): https://codereview.chromium.org/2306333002/diff/400001/device/generic_sensor/platform_sensor.h#newcode76 device/generic_sensor/platform_sensor.h:76: friend class FakePlatformSensor; if ...
4 years, 2 months ago (2016-09-21 13:07:48 UTC) #115
maksims (do not use this acc)
https://codereview.chromium.org/2306333002/diff/400001/device/generic_sensor/platform_sensor.h File device/generic_sensor/platform_sensor.h (right): https://codereview.chromium.org/2306333002/diff/400001/device/generic_sensor/platform_sensor.h#newcode76 device/generic_sensor/platform_sensor.h:76: friend class FakePlatformSensor; On 2016/09/21 13:07:48, timvolodine wrote: > ...
4 years, 2 months ago (2016-09-26 07:09:15 UTC) #118
timvolodine
lgtm % comments https://codereview.chromium.org/2306333002/diff/400001/device/generic_sensor/platform_sensor_provider_unittest.cc File device/generic_sensor/platform_sensor_provider_unittest.cc (right): https://codereview.chromium.org/2306333002/diff/400001/device/generic_sensor/platform_sensor_provider_unittest.cc#newcode135 device/generic_sensor/platform_sensor_provider_unittest.cc:135: sensor1 = nullptr; On 2016/09/26 07:09:15, ...
4 years, 2 months ago (2016-09-27 19:11:00 UTC) #122
maksims (do not use this acc)
https://codereview.chromium.org/2306333002/diff/420001/device/generic_sensor/fake_platform_sensor.h File device/generic_sensor/fake_platform_sensor.h (right): https://codereview.chromium.org/2306333002/diff/420001/device/generic_sensor/fake_platform_sensor.h#newcode26 device/generic_sensor/fake_platform_sensor.h:26: using PlatformSensor::config_map; On 2016/09/27 19:11:00, timvolodine wrote: > is ...
4 years, 2 months ago (2016-09-28 07:58:41 UTC) #125
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/2306333002/440001
4 years, 2 months ago (2016-09-28 11:05:37 UTC) #130
commit-bot: I haz the power
Committed patchset #8 (id:440001)
4 years, 2 months ago (2016-09-28 11:10:46 UTC) #132
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 11:12:34 UTC) #134
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d14d9caac146d4fb9cec5888448a8728a9326c72
Cr-Commit-Position: refs/heads/master@{#421495}

Powered by Google App Engine
This is Rietveld 408576698