michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.gecko; michael@0: michael@0: import android.os.Bundle; michael@0: import android.test.InstrumentationTestRunner; michael@0: import android.util.Log; michael@0: michael@0: public class FennecInstrumentationTestRunner extends InstrumentationTestRunner { michael@0: private static Bundle sArguments; michael@0: michael@0: @Override michael@0: public void onCreate(Bundle arguments) { michael@0: sArguments = arguments; michael@0: if (sArguments == null) { michael@0: Log.e("Robocop", "FennecInstrumentationTestRunner.onCreate got null bundle"); michael@0: } michael@0: super.onCreate(arguments); michael@0: } michael@0: michael@0: // unfortunately we have to make this static because test classes that don't extend michael@0: // from ActivityInstrumentationTestCase2 can't get a reference to this class. michael@0: public static Bundle getFennecArguments() { michael@0: if (sArguments == null) { michael@0: Log.e("Robocop", "FennecInstrumentationTestCase.getFennecArguments returns null bundle"); michael@0: } michael@0: return sArguments; michael@0: } michael@0: }