Commit 4a1125d8 authored by Matthew Cary's avatar Matthew Cary Committed by Commit Bot

Android: manually list test for multidex on all platforms.

This small change removes the KitKat restriction for manual
listing of tests.

Bug: 905230
Change-Id: Ib66544873017fd0c5261af0ad1d57358ea97a167
Reviewed-on: https://chromium-review.googlesource.com/c/1337493Reviewed-by: default avatarEric Stevenson <estevenson@chromium.org>
Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Commit-Queue: Matthew Cary <mattcary@chromium.org>
Cr-Commit-Position: refs/heads/master@{#608446}
parent 22aa45b6
...@@ -11,7 +11,6 @@ import android.content.Context; ...@@ -11,7 +11,6 @@ import android.content.Context;
import android.content.pm.InstrumentationInfo; import android.content.pm.InstrumentationInfo;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException; import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.support.test.InstrumentationRegistry; import android.support.test.InstrumentationRegistry;
import android.support.test.internal.runner.RunnerArgs; import android.support.test.internal.runner.RunnerArgs;
...@@ -192,8 +191,7 @@ public class BaseChromiumAndroidJUnitRunner extends AndroidJUnitRunner { ...@@ -192,8 +191,7 @@ public class BaseChromiumAndroidJUnitRunner extends AndroidJUnitRunner {
(DexFile[]) bootstrapClass.getDeclaredField("sIncrementalDexFiles").get(null)); (DexFile[]) bootstrapClass.getDeclaredField("sIncrementalDexFiles").get(null));
} catch (Exception e) { } catch (Exception e) {
// Not an incremental apk. // Not an incremental apk.
if (BuildConfig.IS_MULTIDEX_ENABLED if (BuildConfig.IS_MULTIDEX_ENABLED) {
&& Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT) {
// Test listing fails for test classes that aren't in the main dex // Test listing fails for test classes that aren't in the main dex
// (crbug.com/903820). // (crbug.com/903820).
addClassloaderDexFiles(dexFiles, getClass().getClassLoader()); addClassloaderDexFiles(dexFiles, getClass().getClassLoader());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment