#include "ocsp.h"
#include <gtest/gtest.h>
#include <openssl/base64.h>
#include <openssl/pool.h>
#include "encode_values.h"
#include "string_util.h"
#include "test_helpers.h"
BSSL_NAMESPACE_BEGIN
namespace {
constexpr int64_t kOCSPAgeOneWeek = …;
std::string GetFilePath(const std::string &file_name) { … }
std::shared_ptr<const ParsedCertificate> ParseCertificate(
std::string_view data) { … }
struct TestParams { … };
class CheckOCSPTest : public ::testing::TestWithParam<TestParams> { … };
const TestParams kTestParams[] = …;
struct PrintTestName { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(CheckOCSPTest, FromFile) { … }
std::string_view kGetURLTestParams[] = …;
class CreateOCSPGetURLTest : public ::testing::TestWithParam<std::string_view> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(CreateOCSPGetURLTest, Basic) { … }
}
BSSL_NAMESPACE_END