Commit a2512808 authored by mikecase's avatar mikecase Committed by Commit bot

[Android] Suppress findbugs hardcoded filename warning.

We use a hardcoded file to determine timeout scaling. Suppressing
findbugs warning about using the hardcoded filename in the
OnDeviceInstrumentationDriver class.

BUG=
TBR=nyquist@chromium.org

Review URL: https://codereview.chromium.org/1510493013

Cr-Commit-Position: refs/heads/master@{#364483}
parent 6d2b2c67
......@@ -11,6 +11,7 @@ android_apk("driver_apk") {
testonly = true
deps = [
"//base:base_java",
"//base:base_java_test_support",
"//testing/android/appurify_support:appurify_support_java",
"//testing/android/broker:broker_java",
......
......@@ -13,6 +13,7 @@ import android.os.Environment;
import android.test.InstrumentationTestRunner;
import android.util.Log;
import org.chromium.base.annotations.SuppressFBWarnings;
import org.chromium.base.test.util.ScalableTimeout;
import org.chromium.test.broker.OnDeviceInstrumentationBroker;
import org.chromium.test.reporter.TestStatusReceiver;
......@@ -66,6 +67,7 @@ public class OnDeviceInstrumentationDriver extends Instrumentation {
@param arguments The arguments to parse.
*/
@Override
@SuppressFBWarnings("DMI_HARDCODED_ABSOLUTE_FILENAME")
public void onCreate(Bundle arguments) {
mTargetArgs = new Bundle(arguments);
mTargetPackage = arguments.getString(EXTRA_TARGET_PACKAGE);
......@@ -145,6 +147,7 @@ public class OnDeviceInstrumentationDriver extends Instrumentation {
/** Clean up the reporting service. */
@Override
@SuppressFBWarnings("DMI_HARDCODED_ABSOLUTE_FILENAME")
public void onDestroy() {
super.onDestroy();
if (mTimeoutScale != null) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment