#include "quiche/quic/core/crypto/client_proof_source.h"
#include <string>
#include "quiche/quic/platform/api/quic_expect_bug.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/test_certificates.h"
namespace quic {
namespace test {
quiche::QuicheReferenceCountedPointer<ClientProofSource::Chain>
TestCertChain() { … }
CertificatePrivateKey TestPrivateKey() { … }
const ClientProofSource::CertAndKey* TestCertAndKey() { … }
quiche::QuicheReferenceCountedPointer<ClientProofSource::Chain>
NullCertChain() { … }
quiche::QuicheReferenceCountedPointer<ClientProofSource::Chain>
EmptyCertChain() { … }
quiche::QuicheReferenceCountedPointer<ClientProofSource::Chain> BadCertChain() { … }
CertificatePrivateKey EmptyPrivateKey() { … }
#define VERIFY_CERT_AND_KEY_MATCHES(lhs, rhs) …
void VerifyCertAndKeyMatches(const ClientProofSource::CertAndKey* lhs,
const ClientProofSource::CertAndKey* rhs) { … }
TEST(DefaultClientProofSource, FullDomain) { … }
TEST(DefaultClientProofSource, WildcardDomain) { … }
TEST(DefaultClientProofSource, DefaultDomain) { … }
TEST(DefaultClientProofSource, FullAndWildcard) { … }
TEST(DefaultClientProofSource, FullWildcardAndDefault) { … }
TEST(DefaultClientProofSource, EmptyCerts) { … }
TEST(DefaultClientProofSource, BadCerts) { … }
TEST(DefaultClientProofSource, KeyMismatch) { … }
}
}