#include <stdint.h>
#include <string>
#include <utility>
#include "absl/strings/escaping.h"
#include "absl/strings/string_view.h"
#include "openssl/hpke.h"
#include "quiche/common/platform/api/quiche_test.h"
#include "quiche/oblivious_http/buffers/oblivious_http_response.h"
namespace quiche {
namespace {
struct ObliviousHttpResponseTestStrings { … };
std::string GetHpkePrivateKey() { … }
std::string GetHpkePublicKey() { … }
const ObliviousHttpHeaderKeyConfig GetOhttpKeyConfig(uint8_t key_id,
uint16_t kem_id,
uint16_t kdf_id,
uint16_t aead_id) { … }
bssl::UniquePtr<EVP_HPKE_KEY> ConstructHpkeKey(
absl::string_view hpke_key,
const ObliviousHttpHeaderKeyConfig &ohttp_key_config) { … }
}
ObliviousHttpParameterizedTest;
TEST_P(ObliviousHttpParameterizedTest, TestEndToEndWithOfflineStrings) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST(ObliviousHttpIntegrationTest, TestWithCustomRequestResponseLabels) { … }
}