chromium/net/third_party/quiche/src/quiche/common/structured_headers_generated_test.cc

// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <optional>
#include <string>
#include <utility>

#include "quiche/common/platform/api/quiche_test.h"
#include "quiche/common/structured_headers.h"

// This file contains tests cases for the Structured Header parser and
// serializer, taken from the public test case repository at
// https://github.com/httpwg/structured-field-tests. All of the tests are named,
// so a given test case can be found in the JSON files in that repository by
// searching for the test name. This file is generated, with the test cases
// being automatically translated from the JSON source to C++ unit tests. Please
// do not modify, as the contents will be overwritten when this is re-generated.

// Generated on 2022-03-15 from structured-field-tests.git @
// faed1f92942abd4fb5d61b1f9f0dc359f499f1d7.

namespace quiche {
namespace structured_headers {
namespace {

// Helpers to make test cases clearer

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[] =;

}  // namespace

TEST(StructuredHeaderGeneratedTest, ParseItem) {}

TEST(StructuredHeaderGeneratedTest, ParseList) {}

TEST(StructuredHeaderGeneratedTest, ParseDictionary) {}

TEST(StructuredHeaderGeneratedTest, SerializeItem) {}

TEST(StructuredHeaderGeneratedTest, SerializeList) {}

TEST(StructuredHeaderGeneratedTest, SerializeDictionary) {}

}  // namespace structured_headers
}  // namespace quiche