summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/input_method/xkeyboard.h
diff options
context:
space:
mode:
authoryusukes@chromium.org <yusukes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-14 04:02:26 +0000
committeryusukes@chromium.org <yusukes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-14 04:02:26 +0000
commit94e334dcb4d70f9ec917e0303128b04bfa3d3f1f (patch)
tree218047314dc9056128e389db76ad0c9b450e3a14 /chrome/browser/chromeos/input_method/xkeyboard.h
parent5408788fa1c445defb7b56f5ed8a14cb217c5b27 (diff)
downloadchromium_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.h10
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.