@Test public void stopOnStoppedWatchdogDoesNothing() { watchdog.stop(); ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); verifyZeroInteractions(webSocket); }
synchronized void stop() { if (cleanupRunnable != null) { handler.removeCallbacks(cleanupRunnable); } cleanupRunnable = null; connectionTimeoutMs = -1; }
TimeoutWatchdog { synchronized void stop() { if (cleanupRunnable != null) { handler.removeCallbacks(cleanupRunnable); } cleanupRunnable = null; connectionTimeoutMs = -1; } }
TimeoutWatchdog { synchronized void stop() { if (cleanupRunnable != null) { handler.removeCallbacks(cleanupRunnable); } cleanupRunnable = null; connectionTimeoutMs = -1; } TimeoutWatchdog(); }
TimeoutWatchdog { synchronized void stop() { if (cleanupRunnable != null) { handler.removeCallbacks(cleanupRunnable); } cleanupRunnable = null; connectionTimeoutMs = -1; } TimeoutWatchdog();  }
TimeoutWatchdog { synchronized void stop() { if (cleanupRunnable != null) { handler.removeCallbacks(cleanupRunnable); } cleanupRunnable = null; connectionTimeoutMs = -1; } TimeoutWatchdog();   }