Install multidex in FennecInstrumentationTestRunner. draft
authorTudor-Gabriel Vîjială <tvijiala@mozilla.com>
Mon, 13 Aug 2018 14:47:18 +0100
changeset 1665876 820eaadb62c6
parent 1665875 da60affb8cee
child 1665877 6e2c3acfda6a
child 1667418 f93df7b2fc4c
child 1667430 8bf5317d5507
push id291082
push usertvijiala@mozilla.com
push dateMon, 13 Aug 2018 13:48:27 +0000
treeherdertry@6e2c3acfda6a [default view] [failures only]
milestone63.0a1
Install multidex in FennecInstrumentationTestRunner.
mobile/android/tests/browser/robocop/src/org/mozilla/gecko/FennecInstrumentationTestRunner.java
--- a/mobile/android/tests/browser/robocop/src/org/mozilla/gecko/FennecInstrumentationTestRunner.java
+++ b/mobile/android/tests/browser/robocop/src/org/mozilla/gecko/FennecInstrumentationTestRunner.java
@@ -3,30 +3,32 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 package org.mozilla.gecko;
 
 import android.app.KeyguardManager;
 import android.content.Context;
 import android.os.Bundle;
 import android.os.PowerManager;
+import android.support.multidex.MultiDex;
 import android.test.InstrumentationTestRunner;
 import android.util.Log;
 
 import static android.os.PowerManager.ACQUIRE_CAUSES_WAKEUP;
 import static android.os.PowerManager.FULL_WAKE_LOCK;
 import static android.os.PowerManager.ON_AFTER_RELEASE;
 
 public class FennecInstrumentationTestRunner extends InstrumentationTestRunner {
     private static Bundle sArguments;
     private PowerManager.WakeLock wakeLock;
     private KeyguardManager.KeyguardLock keyguardLock;
 
     @Override
     public void onCreate(Bundle arguments) {
+        MultiDex.install(getTargetContext());
         sArguments = arguments;
         if (sArguments == null) {
             Log.e("Robocop", "FennecInstrumentationTestRunner.onCreate got null bundle");
         }
         super.onCreate(arguments);
     }
 
     // unfortunately we have to make this static because test classes that don't extend