Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: base/test/android/javatests/src/org/chromium/base/test/util/DisableIf.java

Issue 1519523002: [Android] Support conditional test disabling based on android.os.Build values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix one outdated use of SkipCheck Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698