#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "net/cert/internal/test_helpers.h"
#include "base/base_paths.h"
#include "base/files/file_util.h"
#include "base/path_service.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/boringssl/src/include/openssl/pool.h"
#include "third_party/boringssl/src/pki/cert_errors.h"
#include "third_party/boringssl/src/pki/pem.h"
namespace net {
::testing::AssertionResult ReadTestDataFromPemFile(
const std::string& file_path_ascii,
const PemBlockMapping* mappings,
size_t mappings_length) { … }
bool ReadCertChainFromFile(const std::string& file_path_ascii,
bssl::ParsedCertificateList* chain) { … }
std::shared_ptr<const bssl::ParsedCertificate> ReadCertFromFile(
const std::string& file_path_ascii) { … }
std::string ReadTestFileToString(const std::string& file_path_ascii) { … }
}