package com.bumptech.glide.tests;

import static org.mockito.Mockito.mock;

import android.os.Looper;
import android.os.MessageQueue;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.Resetter;
import org.robolectric.shadows.ShadowLooper;

@Implements(Looper.class)
public class GlideShadowLooper extends ShadowLooper {
  public static MessageQueue queue = mock(MessageQueue.class);

  @Implementation
  public static MessageQueue myQueue() {
    return queue;
  }

  @Resetter
  @Override
  public void reset() {
    queue = mock(MessageQueue.class);
  }
}
