#include "quiche/oblivious_http/common/oblivious_http_header_key_config.h"
#include <cstdint>
#include <string>
#include "absl/strings/escaping.h"
#include "absl/strings/str_cat.h"
#include "openssl/hpke.h"
#include "quiche/common/platform/api/quiche_logging.h"
#include "quiche/common/platform/api/quiche_test.h"
#include "quiche/common/quiche_data_writer.h"
namespace quiche {
namespace {
AllOf;
Property;
StrEq;
UnorderedElementsAre;
UnorderedElementsAreArray;
std::string BuildHeader(uint8_t key_id, uint16_t kem_id, uint16_t kdf_id,
uint16_t aead_id) { … }
std::string GetSerializedKeyConfig(
ObliviousHttpKeyConfigs::OhttpKeyConfig& key_config) { … }
TEST(ObliviousHttpHeaderKeyConfig, TestSerializeRecipientContextInfo) { … }
TEST(ObliviousHttpHeaderKeyConfig, TestValidKeyConfig) { … }
TEST(ObliviousHttpHeaderKeyConfig, TestInvalidKeyConfig) { … }
TEST(ObliviousHttpHeaderKeyConfig, TestParsingValidHeader) { … }
TEST(ObliviousHttpHeaderKeyConfig, TestParsingInvalidHeader) { … }
TEST(ObliviousHttpHeaderKeyConfig, TestParsingKeyIdFromObliviousHttpRequest) { … }
TEST(ObliviousHttpHeaderKeyConfig, TestCopyable) { … }
TEST(ObliviousHttpHeaderKeyConfig, TestSerializeOhttpPayloadHeader) { … }
MATCHER_P(HasKeyId, id, "") { … }
MATCHER_P(HasKemId, id, "") { … }
MATCHER_P(HasKdfId, id, "") { … }
MATCHER_P(HasAeadId, id, "") { … }
TEST(ObliviousHttpKeyConfigs, SingleKeyConfig) { … }
TEST(ObliviousHttpKeyConfigs, TwoSimilarKeyConfigs) { … }
TEST(ObliviousHttpKeyConfigs, RFCExample) { … }
TEST(ObliviousHttpKeyConfigs, DuplicateKeyId) { … }
TEST(ObliviousHttpHeaderKeyConfigs, TestCreateWithSingleKeyConfig) { … }
TEST(ObliviousHttpHeaderKeyConfigs, TestCreateWithWithMultipleKeys) { … }
TEST(ObliviousHttpHeaderKeyConfigs, TestCreateWithInvalidConfigs) { … }
TEST(ObliviousHttpHeaderKeyConfigs,
TestCreateSingleKeyConfigWithInvalidConfig) { … }
TEST(ObliviousHttpHeaderKeyConfigs, TestHashImplWithObliviousStruct) { … }
}
}