OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.base.test; |
| 6 |
| 7 import android.os.Bundle; |
| 8 import android.support.test.runner.AndroidJUnitRunner; |
| 9 |
| 10 import org.chromium.base.multidex.ChromiumMultiDexInstaller; |
| 11 |
| 12 /** |
| 13 * A custom AndroidJUnitRunner that supports multidex installer. |
| 14 * |
| 15 * This class is the equivalent of BaseChromiumInstrumentationTestRunner in JUni
t3. Please |
| 16 * beware that is this not a class runner. It is declared in test apk AndroidMan
ifest.xml |
| 17 * <instrumentation> |
| 18 */ |
| 19 public class BaseChromiumAndroidJUnitRunner extends AndroidJUnitRunner { |
| 20 @Override |
| 21 public void onCreate(Bundle arguments) { |
| 22 ChromiumMultiDexInstaller.install(getTargetContext()); |
| 23 super.onCreate(arguments); |
| 24 } |
| 25 } |
OLD | NEW |