#include "net/base/backoff_entry.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
TimeTicks;
BackoffEntry::Policy base_policy = …;
class TestTickClock : public base::TickClock { … };
TEST(BackoffEntryTest, BaseTest) { … }
TEST(BackoffEntryTest, CanDiscardNeverExpires) { … }
TEST(BackoffEntryTest, CanDiscard) { … }
TEST(BackoffEntryTest, CanDiscardAlwaysDelay) { … }
TEST(BackoffEntryTest, CanDiscardNotStored) { … }
TEST(BackoffEntryTest, ShouldIgnoreFirstTwo) { … }
TEST(BackoffEntryTest, ReleaseTimeCalculation) { … }
TEST(BackoffEntryTest, ReleaseTimeCalculationAlwaysDelay) { … }
TEST(BackoffEntryTest, ReleaseTimeCalculationWithJitter) { … }
TEST(BackoffEntryTest, FailureThenSuccess) { … }
TEST(BackoffEntryTest, FailureThenSuccessAlwaysDelay) { … }
TEST(BackoffEntryTest, RetainCustomHorizon) { … }
TEST(BackoffEntryTest, RetainCustomHorizonWhenInitialErrorsIgnored) { … }
TEST(BackoffEntryTest, OverflowProtection) { … }
}
}