#include "quiche/quic/core/quic_alarm.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "quiche/quic/core/quic_connection_context.h"
#include "quiche/quic/platform/api/quic_expect_bug.h"
#include "quiche/quic/platform/api/quic_test.h"
ElementsAre;
Invoke;
Return;
namespace quic {
namespace test {
namespace {
class TraceCollector : public QuicConnectionTracer { … };
class MockDelegate : public QuicAlarm::Delegate { … };
class DestructiveDelegate : public QuicAlarm::DelegateWithoutContext { … };
class TestAlarm : public QuicAlarm { … };
class DestructiveAlarm : public QuicAlarm { … };
class QuicAlarmTest : public QuicTest { … };
TEST_F(QuicAlarmTest, IsSet) { … }
TEST_F(QuicAlarmTest, Set) { … }
TEST_F(QuicAlarmTest, Cancel) { … }
TEST_F(QuicAlarmTest, PermanentCancel) { … }
TEST_F(QuicAlarmTest, Update) { … }
TEST_F(QuicAlarmTest, UpdateWithZero) { … }
TEST_F(QuicAlarmTest, Fire) { … }
TEST_F(QuicAlarmTest, FireAndResetViaSet) { … }
TEST_F(QuicAlarmTest, FireDestroysAlarm) { … }
TEST_F(QuicAlarmTest, NullAlarmContext) { … }
TEST_F(QuicAlarmTest, AlarmContextWithNullTracer) { … }
TEST_F(QuicAlarmTest, AlarmContextWithTracer) { … }
}
}
}