chromium/net/cert/test_root_certs.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/cert/test_root_certs.h"

#include <string>
#include <string_view>
#include <utility>

#include "net/cert/x509_certificate.h"
#include "net/cert/x509_util.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/trust_store.h"

namespace net {

namespace {

bool g_has_instance =;

base::LazyInstance<TestRootCerts>::Leaky
    g_test_root_certs =;

}  // namespace

// static
TestRootCerts* TestRootCerts::GetInstance() {}

bool TestRootCerts::HasInstance() {}

bool TestRootCerts::Add(X509Certificate* certificate,
                        bssl::CertificateTrust trust) {}

void TestRootCerts::AddKnownRoot(base::span<const uint8_t> der_cert) {}

void TestRootCerts::Clear() {}

bool TestRootCerts::IsEmpty() const {}

bool TestRootCerts::IsKnownRoot(base::span<const uint8_t> der_cert) const {}

TestRootCerts::TestRootCerts() {}

ScopedTestRoot::ScopedTestRoot() = default;

ScopedTestRoot::ScopedTestRoot(scoped_refptr<X509Certificate> cert,
                               bssl::CertificateTrust trust) {}

ScopedTestRoot::ScopedTestRoot(CertificateList certs,
                               bssl::CertificateTrust trust) {}

ScopedTestRoot::ScopedTestRoot(ScopedTestRoot&& other) {}

ScopedTestRoot& ScopedTestRoot::operator=(ScopedTestRoot&& other) {}

ScopedTestRoot::~ScopedTestRoot() {}

void ScopedTestRoot::Reset(CertificateList certs,
                           bssl::CertificateTrust trust) {}

ScopedTestKnownRoot::ScopedTestKnownRoot() = default;

ScopedTestKnownRoot::ScopedTestKnownRoot(X509Certificate* cert) {}

ScopedTestKnownRoot::~ScopedTestKnownRoot() {}

}  // namespace net