aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-05-29 22:15:56 +0900
committerJean Chalard <jchalard@google.com>2014-05-29 22:15:56 +0900
commitd0d3d813d23efe40598970c51bb8f064b9e3771d (patch)
tree2ef2df0dac0dbc662521a5240fa94c62991a90c0
parentd9190f8e8fb69a8c6740df9dcae82af7b4e92b75 (diff)
downloadlatinime-d0d3d813d23efe40598970c51bb8f064b9e3771d.tar.gz
latinime-d0d3d813d23efe40598970c51bb8f064b9e3771d.tar.xz
latinime-d0d3d813d23efe40598970c51bb8f064b9e3771d.zip
Fix tests
DEBUG in LatinIME has been changed by Ie52007dc to mean both DebugSettings.PREF_DEBUG_MODE and Settings.PREF_KEY_IS_INTERNAL instead of just DEBUG_MODE as used to be the case. Tests depend on the debug mode to test many things and they make sure they run in debug mode or they fail. This has tests understand the change in policy. Change-Id: Ie9f29e6a1d85e19704c8940d3fcf97c13c3dbaa6
-rw-r--r--tests/src/com/android/inputmethod/latin/InputTestsBase.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
index 09c53204b..8406c9099 100644
--- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java
+++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
@@ -162,9 +162,9 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> {
return previousSetting;
}
- // returns the previous setting value
- protected boolean setDebugMode(final boolean value) {
- return setBooleanPreference(DebugSettings.PREF_DEBUG_MODE, value, false);
+ protected void setDebugMode(final boolean value) {
+ setBooleanPreference(DebugSettings.PREF_DEBUG_MODE, value, false);
+ setBooleanPreference(Settings.PREF_KEY_IS_INTERNAL, value, false);
}
protected EditorInfo enrichEditorInfo(final EditorInfo ei) {