Skip to content

Instantly share code, notes, and snippets.

View ryansgot's full-sized avatar

Ryan ryansgot

  • Fukuoka, Japan
  • 17:23 (UTC +09:00)
View GitHub Profile
@ryansgot
ryansgot / DrawableMatcher.java
Created July 23, 2018 22:31
Espresso testing Drawables with color filters
public class DrawableMatcher extends TypeSafeMatcher<View> {
public interface Extractor {
@NonNull Drawable extract(@NonNull View v);
}
private String mReason;
@DrawableRes private final int mDrawableId;
private ColorFilter mExpectedColorFilter;
private Extractor mExtractor;

Keybase proof

I hereby claim:

  • I am ryansgot on github.
  • I am ryansgot (https://keybase.io/ryansgot) on keybase.
  • I have a public key ASAAzPNnn8DC6ZF7hUO_-gh2cy1t2s9r6Ds-IBgFeDEzNwo

To claim this, I am signing this object: