#include "base/memory/raw_ptr.h"
#include "net/cert/internal/system_trust_store.h"
#include <cert.h>
#include <certdb.h>
#include <memory>
#include "crypto/scoped_nss_types.h"
#include "crypto/scoped_test_nss_db.h"
#include "net/cert/internal/system_trust_store_nss.h"
#include "net/cert/internal/trust_store_chrome.h"
#include "net/cert/test_root_certs.h"
#include "net/cert/x509_certificate.h"
#include "net/cert/x509_util.h"
#include "net/cert/x509_util_nss.h"
#include "net/test/cert_test_util.h"
#include "net/test/test_data_directory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/boringssl/src/include/openssl/evp.h"
#include "third_party/boringssl/src/pki/cert_errors.h"
#include "third_party/boringssl/src/pki/parsed_certificate.h"
namespace net {
namespace {
::testing::AssertionResult ParseX509Certificate(
const scoped_refptr<X509Certificate>& x509_cert,
std::shared_ptr<const bssl::ParsedCertificate>* out_parsed_cert) { … }
class SystemTrustStoreNSSTest : public ::testing::Test { … };
TEST_F(SystemTrustStoreNSSTest, UserSlotRestrictionAllows) { … }
TEST_F(SystemTrustStoreNSSTest, UserSlotRestrictionDisallows) { … }
}
}