@Test public void resetOnStoppedWatchdogDoesNothing() { watchdog.reset(); ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); verifyZeroInteractions(webSocket); }
synchronized void reset() { if (cleanupRunnable != null) { handler.removeCallbacks(cleanupRunnable); handler.postDelayed(cleanupRunnable, connectionTimeoutMs); } }
TimeoutWatchdog { synchronized void reset() { if (cleanupRunnable != null) { handler.removeCallbacks(cleanupRunnable); handler.postDelayed(cleanupRunnable, connectionTimeoutMs); } } }
TimeoutWatchdog { synchronized void reset() { if (cleanupRunnable != null) { handler.removeCallbacks(cleanupRunnable); handler.postDelayed(cleanupRunnable, connectionTimeoutMs); } } TimeoutWatchdog(); }
TimeoutWatchdog { synchronized void reset() { if (cleanupRunnable != null) { handler.removeCallbacks(cleanupRunnable); handler.postDelayed(cleanupRunnable, connectionTimeoutMs); } } TimeoutWatchdog();  }
TimeoutWatchdog { synchronized void reset() { if (cleanupRunnable != null) { handler.removeCallbacks(cleanupRunnable); handler.postDelayed(cleanupRunnable, connectionTimeoutMs); } } TimeoutWatchdog();   }