#include "net/base/backoff_entry.h"
#include "base/containers/span.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
#include "base/values.h"
#include "net/base/backoff_entry_serializer.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
Time;
TimeTicks;
const Time kParseTime = …;
BackoffEntry::Policy base_policy = …;
class TestTickClock : public base::TickClock { … };
TEST(BackoffEntrySerializerTest, SpecialCasesOfBackoffDuration) { … }
TEST(BackoffEntrySerializerTest, SerializeFiniteReleaseTime) { … }
TEST(BackoffEntrySerializerTest, SerializeNoFailures) { … }
TEST(BackoffEntrySerializerTest, DeserializeNeverInfiniteReleaseTime) { … }
TEST(BackoffEntrySerializerTest, SerializeTimeOffsets) { … }
TEST(BackoffEntrySerializerTest, DeserializeUnknownVersion) { … }
TEST(BackoffEntrySerializerTest, DeserializeVersion1) { … }
TEST(BackoffEntrySerializerTest, DeserializeVersion2) { … }
TEST(BackoffEntrySerializerTest, DeserializeVersion2NegativeDuration) { … }
TEST(BackoffEntrySerializerTest, DeserializeVersion1WrongDurationType) { … }
TEST(BackoffEntrySerializerTest, DeserializeVersion2WrongDurationType) { … }
}
}