summaryrefslogtreecommitdiffstats
path: root/android_webview/tools/PageCycler/src/org/chromium/webview_shell/page_cycler/WebViewPageCyclerTestRunner.java
blob: 5532c518bfd0625c92f898361f2afce5b337faba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.webview_shell.page_cycler;

import android.test.AndroidTestRunner;
import android.test.InstrumentationTestRunner;

import org.chromium.test.reporter.TestStatusListener;

/**
 * Customized test runner for running instrumentation tests in WebViewBrowserTests.
 */
public class WebViewPageCyclerTestRunner extends InstrumentationTestRunner {

    @Override
    protected AndroidTestRunner getAndroidTestRunner() {
        AndroidTestRunner runner = super.getAndroidTestRunner();
        runner.addTestListener(new TestStatusListener(getContext()));
        return runner;
    }
}