chromium/net/third_party/quiche/src/quiche/quic/core/io/quic_poll_event_loop_test.cc

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

#include "quiche/quic/core/io/quic_poll_event_loop.h"

#include <fcntl.h>
#include <unistd.h>

#include <cerrno>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "absl/memory/memory.h"
#include "quiche/quic/core/io/quic_event_loop.h"
#include "quiche/quic/core/quic_alarm.h"
#include "quiche/quic/core/quic_alarm_factory.h"
#include "quiche/quic/core/quic_time.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/mock_clock.h"

namespace quic {

class QuicPollEventLoopPeer {};

}  // namespace quic

namespace quic::test {
namespace {

_;
AtMost;
ElementsAre;

constexpr QuicSocketEventMask kAllEvents =;
constexpr QuicTime::Delta kDefaultTimeout =;

class MockQuicSocketEventListener : public QuicSocketEventListener {};

class MockDelegate : public QuicAlarm::Delegate {};

class QuicPollEventLoopForTest : public QuicPollEventLoop {};

class QuicPollEventLoopTest : public QuicTest {};

TEST_F(QuicPollEventLoopTest, NothingHappens) {}

TEST_F(QuicPollEventLoopTest, RearmWriter) {}

TEST_F(QuicPollEventLoopTest, Readable) {}

TEST_F(QuicPollEventLoopTest, RearmReader) {}

TEST_F(QuicPollEventLoopTest, WriterUnblocked) {}

TEST_F(QuicPollEventLoopTest, ArtificialEvent) {}

TEST_F(QuicPollEventLoopTest, Unregister) {}

TEST_F(QuicPollEventLoopTest, UnregisterInsideEventHandler) {}

TEST_F(QuicPollEventLoopTest, EintrHandler) {}

TEST_F(QuicPollEventLoopTest, PollReturnsEarly) {}

TEST_F(QuicPollEventLoopTest, AlarmInFuture) {}

TEST_F(QuicPollEventLoopTest, AlarmsInPast) {}

TEST_F(QuicPollEventLoopTest, AlarmCancelled) {}

TEST_F(QuicPollEventLoopTest, AlarmCancelsAnotherAlarm) {}

}  // namespace
}  // namespace quic::test