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