#include "quiche/quic/core/deterministic_connection_id_generator.h"
#include <optional>
#include <ostream>
#include <vector>
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/quic_test_utils.h"
namespace quic {
namespace test {
namespace {
struct TestParams { … };
std::vector<struct TestParams> GetTestParams() { … }
class DeterministicConnectionIdGeneratorTest
: public QuicTestWithParam<TestParams> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(DeterministicConnectionIdGeneratorTest,
NextConnectionIdIsDeterministic) { … }
TEST_P(DeterministicConnectionIdGeneratorTest,
NextConnectionIdLengthIsCorrect) { … }
TEST_P(DeterministicConnectionIdGeneratorTest, NextConnectionIdHasEntropy) { … }
TEST_P(DeterministicConnectionIdGeneratorTest,
OnlyReplaceConnectionIdWithWrongLength) { … }
TEST_P(DeterministicConnectionIdGeneratorTest, ReturnLength) { … }
}
}
}