#include "components/safe_browsing/core/browser/utils/backoff_operator.h"
#include "base/test/task_environment.h"
#include "testing/platform_test.h"
namespace safe_browsing {
namespace {
const size_t kNumFailuresToEnforceBackoff = …;
const size_t kMinBackOffResetDurationInSeconds = …;
const size_t kMaxBackOffResetDurationInSeconds = …;
}
class BackoffOperatorTest : public PlatformTest { … };
TEST_F(BackoffOperatorTest, TestBackoffAndTimerReset) { … }
TEST_F(BackoffOperatorTest, TestBackoffAndRequestSuccessReset) { … }
TEST_F(BackoffOperatorTest, TestExponentialBackoff) { … }
TEST_F(BackoffOperatorTest, TestExponentialBackoffWithResetOnSuccess) { … }
}