chromium/remoting/host/zombie_host_detector_unittest.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// Extra time to fast forward to make sure the task gets run.
static constexpr base::TimeDelta kFastForwardDelta =;

}  // namespace

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) {}

}  // namespace remoting