am 01c2bb13: Merge "Fix KeySpecParserSplitTests"

* commit '01c2bb1303c26525ab27290857e9f9547c34a29a':
  Fix KeySpecParserSplitTests
This commit is contained in:
Tadashi G. Takaoka 2013-07-23 03:35:44 -07:00 committed by Android Git Automerger
commit 3bb110c571
2 changed files with 7 additions and 3 deletions

View file

@ -0,0 +1,3 @@
/* This dummy raw resource is needed to be able to load string resources from a test APK
* successfully. (See {@link KeySpecParserSplitTests#setUp()}.
*/

View file

@ -51,9 +51,10 @@ public class KeySpecParserSplitTests extends InstrumentationTestCase {
}.runInLocale(targetContext.getResources(), TEST_LOCALE);
final String[] testResourceNames = getAllResourceIdNames(
com.android.inputmethod.latin.tests.R.string.class);
mTextsSet.loadStringResourcesInternal(instrumentation.getContext(),
testResourceNames,
com.android.inputmethod.latin.tests.R.string.empty_string);
mTextsSet.loadStringResourcesInternal(instrumentation.getContext(), testResourceNames,
// This dummy raw resource is needed to be able to load string resources from a test
// APK successfully.
com.android.inputmethod.latin.tests.R.raw.dummy_resource_for_testing);
}
private static String[] getAllResourceIdNames(final Class<?> resourceIdClass) {