#include "quiche/quic/core/quic_idle_network_detector.h"
#include "quiche/quic/core/quic_connection_alarms.h"
#include "quiche/quic/core/quic_one_block_arena.h"
#include "quiche/quic/core/quic_time.h"
#include "quiche/quic/platform/api/quic_expect_bug.h"
#include "quiche/quic/platform/api/quic_flags.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/mock_quic_connection_alarms.h"
#include "quiche/quic/test_tools/quic_test_utils.h"
namespace quic {
namespace test {
class QuicIdleNetworkDetectorTestPeer { … };
namespace {
class MockDelegate : public QuicIdleNetworkDetector::Delegate { … };
class QuicIdleNetworkDetectorTest : public QuicTest { … };
TEST_F(QuicIdleNetworkDetectorTest,
IdleNetworkDetectedBeforeHandshakeCompletes) { … }
TEST_F(QuicIdleNetworkDetectorTest, HandshakeTimeout) { … }
TEST_F(QuicIdleNetworkDetectorTest,
IdleNetworkDetectedAfterHandshakeCompletes) { … }
TEST_F(QuicIdleNetworkDetectorTest,
DoNotExtendIdleDeadlineOnConsecutiveSentPackets) { … }
TEST_F(QuicIdleNetworkDetectorTest, ShorterIdleTimeoutOnSentPacket) { … }
TEST_F(QuicIdleNetworkDetectorTest, NoAlarmAfterStopped) { … }
}
}
}