Add unittest for hid mojo implementations

Desktop / Chromium - Ke He [intel.com] - 10 October 2017 03:10 EDT

Add unittest for hid mojo implementations after all clients have been converted to use hid mojo interface.

BUG=728223

Change-Id: I1b7b296e5f47b9bbea7059b60afbd23465661eb5 Reviewed-on: https://chromium-review.googlesource.com/667802

809ec45 Add unittest for hid mojo implementations.
device/hid/BUILD.gn | 3 +-
device/hid/hid_manager_impl.cc | 19 +-
device/hid/hid_manager_impl.h | 7 +-
device/hid/hid_service.cc | 1 +
device/hid/hid_service.h | 2 +-
device/hid/mock_hid_connection.cc | 48 +++++
device/hid/mock_hid_connection.h | 38 ++++
device/hid/mock_hid_service.cc | 14 ++
device/hid/mock_hid_service.h | 8 +-
services/device/BUILD.gn | 7 +-
services/device/hid/hid_manager_unittest.cc | 293 ++++++++++++++++++++++++++++
services/device/unittest_manifest.json | 1 +
12 files changed, 428 insertions(+), 13 deletions(-)

Upstream: git.chromium.org


  • Share