OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.base.test.util; |
| 6 |
| 7 import java.lang.annotation.ElementType; |
| 8 import java.lang.annotation.Retention; |
| 9 import java.lang.annotation.RetentionPolicy; |
| 10 import java.lang.annotation.Target; |
| 11 |
| 12 /** |
| 13 * Annotations to support conditional test disabling. |
| 14 * |
| 15 * These annotations should only be used to disable tests that are temporarily f
ailing |
| 16 * in some configurations. If a test should never run at all in some configurati
ons, use |
| 17 * {@link Restriction}. |
| 18 */ |
| 19 public class DisableIf { |
| 20 |
| 21 /** Conditional disabling based on {@link android.os.Build}. |
| 22 */ |
| 23 @Target({ElementType.METHOD, ElementType.TYPE}) |
| 24 @Retention(RetentionPolicy.RUNTIME) |
| 25 public static @interface Build { |
| 26 String message() default ""; |
| 27 |
| 28 int sdk_is_greater_than() default 0; |
| 29 int sdk_is_less_than() default Integer.MAX_VALUE; |
| 30 |
| 31 String supported_abis_includes() default ""; |
| 32 |
| 33 String hardware_is() default ""; |
| 34 } |
| 35 |
| 36 /* Objects of this type should not be created. */ |
| 37 private DisableIf() {} |
| 38 } |
OLD | NEW |