Initial InputMappers for evdev input HAL.

The previous design of the InputHost wrapper classes made it very
painful to do testing, so this change also reverts to a more classical
C++ pattern for non-copyable objects. The InputHost classes still simply
call through to the input_host_t and callbacks as before.

Updated unittests to use gmock for mocking the InputHost interactions.

Change-Id: I4b70df2c89ed48af77446b8f5b87a4bde94510bf
This commit is contained in:
Tim Kilbourn
2015-05-04 17:26:30 -07:00
parent 61809ac218
commit 4f3145d75f
19 changed files with 801 additions and 520 deletions

View File

@@ -43,7 +43,8 @@ void InputDeviceManager::onDeviceRemoved(const std::shared_ptr<InputDeviceNode>&
return;
}
// TODO: tell the InputDevice and InputDeviceNode that they are being
// removed so they can run any cleanup.
// removed so they can run any cleanup, including unregistering from the
// host.
mDevices.erase(node);
}