diff options
author | yusukes@chromium.org <yusukes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-14 04:02:26 +0000 |
---|---|---|
committer | yusukes@chromium.org <yusukes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-14 04:02:26 +0000 |
commit | 94e334dcb4d70f9ec917e0303128b04bfa3d3f1f (patch) | |
tree | 218047314dc9056128e389db76ad0c9b450e3a14 /chrome/browser/chromeos/input_method/xkeyboard.h | |
parent | 5408788fa1c445defb7b56f5ed8a14cb217c5b27 (diff) | |
download | chromium_src-94e334dcb4d70f9ec917e0303128b04bfa3d3f1f.zip chromium_src-94e334dcb4d70f9ec917e0303128b04bfa3d3f1f.tar.gz chromium_src-94e334dcb4d70f9ec917e0303128b04bfa3d3f1f.tar.bz2 |
Add unit tests for SetAutoRepeatEnabled and SetAutoRepeatRate.
BUG=None
TEST=ran try
Review URL: http://codereview.chromium.org/8497003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109844 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/input_method/xkeyboard.h')
-rw-r--r-- | chrome/browser/chromeos/input_method/xkeyboard.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/input_method/xkeyboard.h b/chrome/browser/chromeos/input_method/xkeyboard.h index cbe9852..15d1b82 100644 --- a/chrome/browser/chromeos/input_method/xkeyboard.h +++ b/chrome/browser/chromeos/input_method/xkeyboard.h @@ -141,6 +141,16 @@ class XKeyboard { static bool ContainsModifierKeyAsReplacement(const ModifierMap& modifier_map, ModifierKey key); + // THIS FUNCTION IS ONLY FOR UNIT TESTS. + // Returns true if auto repeat is enabled. This function is protected: for + // testability. + static bool GetAutoRepeatEnabled(); + + // THIS FUNCTION IS ONLY FOR UNIT TESTS. + // On success, set current auto repeat rate on |out_rate| and returns true. + // Returns false otherwise. This function is protected: for testability. + static bool GetAutoRepeatRate(AutoRepeatRate* out_rate); + private: // This function is used by SetLayout() and RemapModifierKeys(). Calls // setxkbmap command if needed, and updates the last_full_layout_name_ cache. |