1 // Copyright 2020 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 * Overrides a Batch annotation on a class and still require process restart for a particular test 14 * method. This should be used on individual methods only. See comments on Batch for more details. 15 * Optionally supply a message explaining why restart is needed as the value. 16 */ 17 @Target(ElementType.METHOD) 18 @Retention(RetentionPolicy.RUNTIME) 19 public @interface RequiresRestart { value()20 String value() default ""; 21 } 22