GlyphWarmerImpl implements GlyphWarmer { @Override public void warmLayout(Layout layout) { WarmHandler handler = getWarmHandler(); handler.sendMessage(handler.obtainMessage(WarmHandler.NO_OP, layout)); }  @Override void warmLayout(Layout layout);  }
@Test public void testWarmGlyph() { mGlyphWarmerImpl.warmLayout(mLayout); mShadowLooper.runOneTask(); verify(mLayout).draw(any(Canvas.class)); }
@Test public void testWarmGlyphForNullLayout() { mGlyphWarmerImpl.warmLayout(null); mShadowLooper.runOneTask(); }