[Chromoting] Add InputStub and InputEventSender for easy unittesting
Currently only TouchInputStrategy is testable with RemoteInputInjector. So this
change adds InputStub, which is an interface to represent a set of low level
functions to send users' activities to remote host machine. So one can use a
MockInputStub to log down all the events which should be sent to remote
host, and test the behavior of InputStrategyInterface(s) or other
implementations.
Meanwhile this change also adds an InputEventSender, which provides a set of
shortcut functions to directly send Android events instead of raw JNI types.
This change is part of Android Remote Desktop client refactor, a design doc is
@
https://goo.gl/MA6zjx.
BUG=
615277
Committed:
https://crrev.com/1a5aae1dd974c23bb6e990cccaa84eb648a02955
Cr-Commit-Position: refs/heads/master@{#401681}