#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::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) { … }
}
}