Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | /* Any copyright is dedicated to the Public Domain. |
michael@0 | 2 | http://creativecommons.org/publicdomain/zero/1.0/ */ |
michael@0 | 3 | |
michael@0 | 4 | package org.mozilla.gecko.browser.harness; |
michael@0 | 5 | |
michael@0 | 6 | import android.os.Bundle; |
michael@0 | 7 | import android.test.AndroidTestRunner; |
michael@0 | 8 | import android.test.InstrumentationTestRunner; |
michael@0 | 9 | import android.util.Log; |
michael@0 | 10 | |
michael@0 | 11 | /** |
michael@0 | 12 | * A test runner that installs a special test listener. |
michael@0 | 13 | * <p> |
michael@0 | 14 | * In future, this listener will turn JUnit 3 test events into log messages in |
michael@0 | 15 | * the format that Mochitest parsers understand. |
michael@0 | 16 | */ |
michael@0 | 17 | public class BrowserInstrumentationTestRunner extends InstrumentationTestRunner { |
michael@0 | 18 | private static final String LOG_TAG = "BInstTestRunner"; |
michael@0 | 19 | |
michael@0 | 20 | @Override |
michael@0 | 21 | public void onCreate(Bundle arguments) { |
michael@0 | 22 | Log.d(LOG_TAG, "onCreate"); |
michael@0 | 23 | super.onCreate(arguments); |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | @Override |
michael@0 | 27 | protected AndroidTestRunner getAndroidTestRunner() { |
michael@0 | 28 | Log.d(LOG_TAG, "getAndroidTestRunner"); |
michael@0 | 29 | AndroidTestRunner testRunner = super.getAndroidTestRunner(); |
michael@0 | 30 | testRunner.addTestListener(new BrowserTestListener()); |
michael@0 | 31 | return testRunner; |
michael@0 | 32 | } |
michael@0 | 33 | } |