#include <optional>
#include <string>
#include <utility>
#include "quiche/common/platform/api/quiche_test.h"
#include "quiche/common/structured_headers.h"
namespace quiche {
namespace structured_headers {
namespace {
Item Integer(int64_t value) { … }
std::pair<std::string, Item> BooleanParam(std::string key, bool value) { … }
std::pair<std::string, Item> DoubleParam(std::string key, double value) { … }
std::pair<std::string, Item> Param(std::string key, int64_t value) { … }
std::pair<std::string, Item> Param(std::string key, std::string value) { … }
std::pair<std::string, Item> TokenParam(std::string key, std::string value) { … }
const struct ParameterizedItemTestCase { … } parameterized_item_test_cases[] = …;
const struct ListTestCase { … } list_test_cases[] = …;
const struct DictionaryTestCase { … } dictionary_test_cases[] = …;
}
TEST(StructuredHeaderGeneratedTest, ParseItem) { … }
TEST(StructuredHeaderGeneratedTest, ParseList) { … }
TEST(StructuredHeaderGeneratedTest, ParseDictionary) { … }
TEST(StructuredHeaderGeneratedTest, SerializeItem) { … }
TEST(StructuredHeaderGeneratedTest, SerializeList) { … }
TEST(StructuredHeaderGeneratedTest, SerializeDictionary) { … }
}
}