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

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: 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 public class DisableIf {
16
17 /** Conditional disabling based on {@link android.os.Build}.
18 */
19 @Target({ElementType.METHOD, ElementType.TYPE})
20 @Retention(RetentionPolicy.RUNTIME)
21 public static @interface Build {
22 int sdk_is_less_than() default Integer.MAX_VALUE;
23 int sdk_is_greater_than() default 0;
24
25 String supported_abis_includes() default "";
26
27 String hardware_is() default "";
28 }
29
30 /* Objects of this type should not be created. */
31 private DisableIf() {}
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698