Move checking of keyboard reports to a separate function

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1120/head
Michael Richters 3 years ago
parent e87306144e
commit 0670113b66
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -122,6 +122,10 @@ void VirtualDeviceTest::RemoveFromKeyboardReport(Key key) {
// =============================================================================
void VirtualDeviceTest::CheckReports() const {
CheckKeyboardReports();
}
void VirtualDeviceTest::CheckKeyboardReports() const {
int observed_keyboard_report_count = HIDReports()->Keyboard().size();
int expected_keyboard_report_count = expected_keyboard_reports_.size();

@ -124,6 +124,7 @@ class VirtualDeviceTest : public ::testing::Test {
// Compare accumulated observed and expected reports, matching both timestamps
// and keycodes.
void CheckReports() const;
void CheckKeyboardReports() const;
};

Loading…
Cancel
Save