keyboard_hook_monitor_utils.h 860 B

12345678910111213141516171819202122
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_EVENTS_TEST_KEYBOARD_HOOK_MONITOR_UTILS_H_
  5. #define UI_EVENTS_TEST_KEYBOARD_HOOK_MONITOR_UTILS_H_
  6. namespace ui {
  7. // Simulates a KeyboardHook being registered by calling the appropriate method
  8. // on the KeyboardHookMonitorImpl instance.
  9. // This method is exposed to allow testing this behavior outside of //ui/events.
  10. void SimulateKeyboardHookRegistered();
  11. // Simulates a KeyboardHook being unregistered by calling the appropriate method
  12. // on the KeyboardHookMonitorImpl instance.
  13. // This method is exposed to allow testing this behavior outside of //ui/events.
  14. void SimulateKeyboardHookUnregistered();
  15. } // namespace ui
  16. #endif // UI_EVENTS_TEST_KEYBOARD_HOOK_MONITOR_UTILS_H_