1 package org.robolectric.android.internal; 2 3 import static org.robolectric.Shadows.shadowOf; 4 5 import android.os.Looper; 6 import androidx.test.internal.platform.os.ControlledLooper; 7 8 public class LocalControlledLooper implements ControlledLooper { 9 10 @Override drainMainThreadUntilIdle()11 public void drainMainThreadUntilIdle() { 12 shadowOf(Looper.getMainLooper()).idle(); 13 } 14 } 15