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

Issue 2196563004: Add tests for InputDeviceServer/InputDeviceClient. (Closed)

Created:
4 years, 4 months ago by kylechar
Modified:
4 years, 4 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, rjkroege
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add tests for InputDeviceServer/InputDeviceClient. This CL adds single process tests that trigger device hotplug events and ensure that InputDeviceServer forwards input-device information to InputDeviceClient via Mojo IPC. InputDeviceClient is refactored to not always register itself as the InputDeviceManager. This is to allow tests where DeviceDataManager and one or more InputDeviceClients exist. This functionality is hidden and requires subclassing InputDeviceClient to access. BUG=601981 Committed: https://crrev.com/592104aca7f126817491da88187a2572332f0bfd Cr-Commit-Position: refs/heads/master@{#409787}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fixes for comments. #

Patch Set 3 : Switch test runner. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -49 lines) Patch
M services/ui/input_devices/BUILD.gn View 1 2 3 chunks +24 lines, -2 lines 0 comments Download
M services/ui/input_devices/input_device_server.cc View 1 chunk +1 line, -1 line 0 comments Download
A services/ui/input_devices/input_device_unittests.cc View 1 2 1 chunk +198 lines, -0 lines 0 comments Download
M services/ui/public/cpp/input_devices/BUILD.gn View 1 1 chunk +1 line, -2 lines 0 comments Download
M services/ui/public/cpp/input_devices/input_device_client.h View 1 2 chunks +9 lines, -1 line 0 comments Download
M services/ui/public/cpp/input_devices/input_device_client.cc View 1 2 chunks +50 lines, -42 lines 0 comments Download
M testing/buildbot/chromium.chromiumos.json View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.linux.json View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M testing/buildbot/gn_isolate_map.pyl View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/devices/BUILD.gn View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 18 (8 generated)
kylechar
+sadrul@ for general review first (since you are familiar with the work it's testing).
4 years, 4 months ago (2016-07-29 19:15:17 UTC) #2
sadrul
https://codereview.chromium.org/2196563004/diff/1/services/ui/input_devices/BUILD.gn File services/ui/input_devices/BUILD.gn (right): https://codereview.chromium.org/2196563004/diff/1/services/ui/input_devices/BUILD.gn#newcode39 services/ui/input_devices/BUILD.gn:39: "//services/ui/common:run_all_shelltests", You should use //base/test:run_all_unittests instead. https://codereview.chromium.org/2196563004/diff/1/services/ui/input_devices/input_device_unittests.cc File services/ui/input_devices/input_device_unittests.cc ...
4 years, 4 months ago (2016-08-02 15:16:14 UTC) #3
kylechar
I also moved the //ui/events/devices dep on //ui/gfx from deps to public_deps to avoid having ...
4 years, 4 months ago (2016-08-02 17:46:57 UTC) #6
sadrul
lgtm https://codereview.chromium.org/2196563004/diff/1/services/ui/input_devices/BUILD.gn File services/ui/input_devices/BUILD.gn (right): https://codereview.chromium.org/2196563004/diff/1/services/ui/input_devices/BUILD.gn#newcode39 services/ui/input_devices/BUILD.gn:39: "//services/ui/common:run_all_shelltests", On 2016/08/02 17:46:57, kylechar wrote: > On ...
4 years, 4 months ago (2016-08-03 16:02:53 UTC) #7
kylechar
+sky for OWNERS review.
4 years, 4 months ago (2016-08-03 18:04:25 UTC) #10
sky
I'm assuming sadrul reviewed this, so rubber stamp LGTM. Kyle, you should be an owner ...
4 years, 4 months ago (2016-08-03 23:40:34 UTC) #11
kylechar
On 2016/08/03 23:40:34, sky wrote: > I'm assuming sadrul reviewed this, so rubber stamp LGTM. ...
4 years, 4 months ago (2016-08-04 13:52:10 UTC) #12
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/2196563004/80001
4 years, 4 months ago (2016-08-04 13:53:04 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 4 months ago (2016-08-04 15:10:26 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 15:12:59 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/592104aca7f126817491da88187a2572332f0bfd
Cr-Commit-Position: refs/heads/master@{#409787}

Powered by Google App Engine
This is Rietveld 408576698