Fix nullptr crash in OnEmbed
[chromium-blink-merge.git] / net / ssl / client_cert_store_nss_unittest.cc
blob00d3a9c655d32c590565da87c5d1912a445197de
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/ssl/client_cert_store_nss.h"
7 #include "net/ssl/client_cert_store_unittest-inl.h"
9 namespace net {
11 class ClientCertStoreNSSTestDelegate {
12 public:
13 ClientCertStoreNSSTestDelegate() {}
15 bool SelectClientCerts(const CertificateList& input_certs,
16 const SSLCertRequestInfo& cert_request_info,
17 CertificateList* selected_certs) {
18 // Filters |input_certs| using the logic being used to filter the system
19 // store when GetClientCerts() is called.
20 ClientCertStoreNSS::FilterCertsOnWorkerThread(
21 input_certs, cert_request_info, false, selected_certs);
22 return true;
26 INSTANTIATE_TYPED_TEST_CASE_P(NSS,
27 ClientCertStoreTest,
28 ClientCertStoreNSSTestDelegate);
30 } // namespace net