From d0d3d813d23efe40598970c51bb8f064b9e3771d Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Thu, 29 May 2014 22:15:56 +0900 Subject: [PATCH] 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 --- tests/src/com/android/inputmethod/latin/InputTestsBase.java | 6 +++--- 1 file 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 { 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) {