1 package xxx; 2 3 import android.os.Looper; 4 import org.robolectric.annotation.Implementation; 5 import org.robolectric.annotation.Implements; 6 7 /** 8 * Fake shadow for testing {@link org.robolectric.errorprone.bugpatterns.DeprecatedMethodsCheck}. 9 */ 10 @Implements(Looper.class) 11 public class XShadowLooper { 12 @Implementation getMainLooper()13 public static Looper getMainLooper() { 14 return null; 15 } 16 getSchedule()17 public String getSchedule() { 18 return null; 19 } 20 runToEndOfTasks()21 public void runToEndOfTasks() {} 22 } 23