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
main
Jean Chalard 2014-05-29 22:15:56 +09:00
parent d9190f8e8f
commit d0d3d813d2
1 changed files with 3 additions and 3 deletions

View File

@ -162,9 +162,9 @@ public class InputTestsBase extends ServiceTestCase<LatinIMEForTests> {
return previousSetting; return previousSetting;
} }
// returns the previous setting value protected void setDebugMode(final boolean value) {
protected boolean setDebugMode(final boolean value) { setBooleanPreference(DebugSettings.PREF_DEBUG_MODE, value, false);
return setBooleanPreference(DebugSettings.PREF_DEBUG_MODE, value, false); setBooleanPreference(Settings.PREF_KEY_IS_INTERNAL, value, false);
} }
protected EditorInfo enrichEditorInfo(final EditorInfo ei) { protected EditorInfo enrichEditorInfo(final EditorInfo ei) {