summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2022-11-28 12:56:17 +0000
committer Harry Cutts <hcutts@google.com> 2022-11-28 16:45:49 +0000
commita5b712925a0c51cc99304cb1fa3c57c1729ff01b (patch)
tree18f3018f2538fcf4e0e6c6b27f3e30c11cd191f3 /libs/gui/LayerState.cpp
parent345d32bcbf1fdeae6be3989fc96c7ea9c2ac3957 (diff)
inputflinger_tests: Put `FakeEventHub` in its own file
I would like to be able to put automated tests for the new `TouchpadEventMapper` in their own file, rather than InputReader_tests.cpp. To do this I'll need some of the test utilities in their own files, too. Aside from extracting the `FakeEventHub` definition into its own file and putting method bodies into a .cpp file, I've made a few other minor refactors: * Use an early return to reduce nesting in `markSupportedKeyCodes` * Use a ternary instead of an `if` in `getScanCodeState` * Remove some single-use `device` variables and replace their use with a call to `getDevice` * Reordered the methods in the .h to make the grouping a little more logical * Tried to follow "Include What You Use" in the new files Bug: 251196347 Test: atest inputflinger_tests Change-Id: I55fe8267976d7aba58e1e4067b041d92dfd5347d to fixup Change-Id: I59df4e03db7e30cf7d17425ed38fe7f639dec836
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions