| Index: base/test/android/javatests/src/org/chromium/base/test/util/DisableIf.java
|
| diff --git a/base/test/android/javatests/src/org/chromium/base/test/util/DisableIf.java b/base/test/android/javatests/src/org/chromium/base/test/util/DisableIf.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c969a62d6eeea6913ac1b0d670c6b8d09ddf0c26
|
| --- /dev/null
|
| +++ b/base/test/android/javatests/src/org/chromium/base/test/util/DisableIf.java
|
| @@ -0,0 +1,32 @@
|
| +// 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.base.test.util;
|
| +
|
| +import java.lang.annotation.ElementType;
|
| +import java.lang.annotation.Retention;
|
| +import java.lang.annotation.RetentionPolicy;
|
| +import java.lang.annotation.Target;
|
| +
|
| +/**
|
| + * Annotations to support conditional test disabling.
|
| + */
|
| +public class DisableIf {
|
| +
|
| + /** Conditional disabling based on {@link android.os.Build}.
|
| + */
|
| + @Target({ElementType.METHOD, ElementType.TYPE})
|
| + @Retention(RetentionPolicy.RUNTIME)
|
| + public static @interface Build {
|
| + int sdk_is_less_than() default Integer.MAX_VALUE;
|
| + int sdk_is_greater_than() default 0;
|
| +
|
| + String supported_abis_includes() default "";
|
| +
|
| + String hardware_is() default "";
|
| + }
|
| +
|
| + /* Objects of this type should not be created. */
|
| + private DisableIf() {}
|
| +}
|
|
|