// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_SSL_CLIENT_CERT_IDENTITY_TEST_UTIL_H_ #define NET_SSL_CLIENT_CERT_IDENTITY_TEST_UTIL_H_ #include "net/ssl/client_cert_identity.h" namespace base { class FilePath; } namespace net { // Simple ClientCertIdentity implementation for testing. // Note: this implementation of AcquirePrivateKey will always call the callback // synchronously. class FakeClientCertIdentity : public ClientCertIdentity { … }; // Converts a CertificateList to a ClientCertIdentityList of // FakeClientCertIdentity, with null private keys. ClientCertIdentityList FakeClientCertIdentityListFromCertificateList( const CertificateList& certs); } // namespace net #endif // NET_SSL_CLIENT_CERT_IDENTITY_TEST_UTIL_H_