diff options
author | reillyg <reillyg@chromium.org> | 2014-10-30 11:42:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-30 18:42:28 +0000 |
commit | e48477cd0a73dce8d17a2a6290434602252d6ba6 (patch) | |
tree | 0b8a48afdc2356be7cc86926151360f668a556bc /device/hid/hid_service.h | |
parent | 2dc842c7481b6cc806bcd7b8cd027e496853149f (diff) | |
download | chromium_src-e48477cd0a73dce8d17a2a6290434602252d6ba6.zip chromium_src-e48477cd0a73dce8d17a2a6290434602252d6ba6.tar.gz chromium_src-e48477cd0a73dce8d17a2a6290434602252d6ba6.tar.bz2 |
Add API tests for the chrome.hid API.
These test validate that the implementation of the chrome.hid API is using
the API provided by //device/hid correctly. It does not talk to real devices
or validate platform-specific functionality.
BUG=
Review URL: https://codereview.chromium.org/690473002
Cr-Commit-Position: refs/heads/master@{#302117}
Diffstat (limited to 'device/hid/hid_service.h')
-rw-r--r-- | device/hid/hid_service.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/device/hid/hid_service.h b/device/hid/hid_service.h index a3f7132..c01fcbc 100644 --- a/device/hid/hid_service.h +++ b/device/hid/hid_service.h @@ -27,6 +27,8 @@ class HidService { scoped_refptr<base::SingleThreadTaskRunner> file_task_runner, scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); + static void SetInstanceForTest(HidService* instance); + // Enumerates and returns a list of device identifiers. virtual void GetDevices(std::vector<HidDeviceInfo>* devices); |