#include "remoting/host/zombie_host_detector.h"
#include "base/functional/callback_helpers.h"
#include "base/test/bind.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "net/base/mock_network_change_notifier.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
static constexpr base::TimeDelta kFastForwardDelta = …;
}
namespace remoting {
class ZombieHostDetectorTest : public testing::Test { … };
TEST_F(ZombieHostDetectorTest, NoEvent_Noop) { … }
TEST_F(ZombieHostDetectorTest, AllEventsAreCurrent_Noop) { … }
TEST_F(ZombieHostDetectorTest, HeartbeatNotCurrent_CallbackCalled) { … }
TEST_F(ZombieHostDetectorTest, SignalingNotCurrent_CallbackCalled) { … }
TEST_F(ZombieHostDetectorTest, NeitherIsCurrent_CallbackCalled) { … }
TEST_F(ZombieHostDetectorTest, NeitherIsCurrentWhileNoConnection_Noop) { … }
TEST_F(ZombieHostDetectorTest, NoEventAfterComingBackOnline_Noop) { … }
TEST_F(ZombieHostDetectorTest, NeitherIsCurrentWhenJustComeBackOnline_Noop) { … }
TEST_F(ZombieHostDetectorTest, NotCurrentAfterComingBackOnline_CallbackCalled) { … }
}