#include "net/cert/internal/trust_store_chrome.h"
#include "base/containers/span.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "crypto/sha2.h"
#include "net/cert/x509_certificate.h"
#include "net/cert/x509_util.h"
#include "net/test/cert_builder.h"
#include "net/test/cert_test_util.h"
#include "net/test/test_data_directory.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/boringssl/src/pki/cert_errors.h"
#include "third_party/boringssl/src/pki/parsed_certificate.h"
namespace net {
namespace {
#include "net/data/ssl/chrome_root_store/chrome-root-store-test-data-inc.cc"
std::shared_ptr<const bssl::ParsedCertificate> ToParsedCertificate(
const X509Certificate& cert) { … }
scoped_refptr<X509Certificate> MakeTestRoot() { … }
TEST(TrustStoreChromeTestNoFixture, ContainsCert) { … }
TEST(TrustStoreChromeTestNoFixture, Constraints) { … }
TEST(TrustStoreChromeTestNoFixture, OverrideConstraints) { … }
TEST(TrustStoreChromeTestNoFixture, ParseCommandLineConstraintsEmpty) { … }
TEST(TrustStoreChromeTestNoFixture, ParseCommandLineConstraintsErrorHandling) { … }
TEST(TrustStoreChromeTestNoFixture,
ParseCommandLineConstraintsOneRootOneConstraint) { … }
TEST(TrustStoreChromeTestNoFixture,
ParseCommandLineConstraintsMultipleRootsMultipleConstraints) { … }
}
}