blob: 8000ec9fee1cf2c2bdceaae4464674d2b6763775 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_TESTING_HARDWARE_KEYBOARD_UTIL_H_
#define IOS_TESTING_HARDWARE_KEYBOARD_UTIL_H_
#import <UIKit/UIKit.h>
namespace chrome_test_util {
// Simulates a physical keyboard event.
// The input is similar to UIKeyCommand parameters, and is designed for testing
// keyboard shortcuts.
// Accepts any strings and also UIKeyInput{Up|Down|Left|Right}Arrow and
// UIKeyInputEscape constants as |input|.
void SimulatePhysicalKeyboardEvent(UIKeyModifierFlags flags, NSString* input);
} // namespace chrome_test_util
#endif // IOS_TESTING_HARDWARE_KEYBOARD_UTIL_H_