Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1402)

Unified Diff: chrome/browser/chromeos/input_method/xkeyboard.h

Issue 8497003: Add unit tests for SetAutoRepeatEnabled and SetAutoRepeatRate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, review fix Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/xkeyboard.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/xkeyboard.h
diff --git a/chrome/browser/chromeos/input_method/xkeyboard.h b/chrome/browser/chromeos/input_method/xkeyboard.h
index cbe9852ebda103f8db84c452c1f9be0a9d16fd96..15d1b82a7a4336fb6bd82f2d7b32b8129ef20005 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.
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/xkeyboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698