1 // Copyright 2022 The Chromium Authors 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 * Annotation to indicate that this collection of tests is not safe to run in batches, where the 14 * Instrumentation Runner (and hence the process) does not need to be restarted between these 15 * tests. 16 * 17 * Tests that are not safe to run in batch should have this annotation with reasons. 18 * 19 * Tests should have either {@link Batch} or {@link DoNotBatch} annotation. 20 */ 21 @Target(ElementType.TYPE) 22 @Retention(RetentionPolicy.RUNTIME) 23 public @interface DoNotBatch { reason()24 String reason(); 25 } 26