xref: /aosp_15_r20/external/cronet/net/cert/x509_certificate_fuzztest.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2024 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "net/cert/x509_certificate.h"
6 #include "third_party/fuzztest/src/fuzztest/fuzztest.h"
7 
8 namespace net {
9 
10 namespace {
11 
FuzzCreateFromDERCertChain(const std::vector<std::string_view> & der_certs)12 void FuzzCreateFromDERCertChain(
13     const std::vector<std::string_view>& der_certs) {
14   X509Certificate::CreateFromDERCertChain(der_certs);
15 }
16 
17 FUZZ_TEST(X509CertificateFuzzTest, FuzzCreateFromDERCertChain);
18 
19 }  // namespace
20 
21 }  // namespace net
22