Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01c2bb13 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Fix KeySpecParserSplitTests"

parents 50a29b80 b80cc628
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
/* This dummy raw resource is needed to be able to load string resources from a test APK
 * successfully. (See {@link KeySpecParserSplitTests#setUp()}.
 */
+4 −3
Original line number Diff line number Diff line
@@ -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) {