Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: net/cert/internal/test_helpers.h

Issue 2282183004: Add error information to VerifyCertificateChain(). (Closed)
Patch Set: fix typo in README Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_CERT_INTERNAL_TEST_HELPERS_H_ 5 #ifndef NET_CERT_INTERNAL_TEST_HELPERS_H_
6 #define NET_CERT_INTERNAL_TEST_HELPERS_H_ 6 #define NET_CERT_INTERNAL_TEST_HELPERS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <ostream> 10 #include <ostream>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return ReadTestDataFromPemFile(file_path_ascii, mappings, N); 76 return ReadTestDataFromPemFile(file_path_ascii, mappings, N);
77 } 77 }
78 78
79 // Reads a test case from |file_name|. Test cases are comprised of a 79 // Reads a test case from |file_name|. Test cases are comprised of a
80 // certificate chain, trust anchor, a timestamp to validate at, and the 80 // certificate chain, trust anchor, a timestamp to validate at, and the
81 // expected result of verification. 81 // expected result of verification.
82 void ReadVerifyCertChainTestFromFile(const std::string& file_name, 82 void ReadVerifyCertChainTestFromFile(const std::string& file_name,
83 ParsedCertificateList* chain, 83 ParsedCertificateList* chain,
84 scoped_refptr<TrustAnchor>* trust_anchor, 84 scoped_refptr<TrustAnchor>* trust_anchor,
85 der::GeneralizedTime* time, 85 der::GeneralizedTime* time,
86 bool* verify_result); 86 bool* verify_result,
87 std::string* expected_errors);
87 88
88 // Reads a data file relative to the src root directory. 89 // Reads a data file relative to the src root directory.
89 std::string ReadTestFileToString(const std::string& file_name); 90 std::string ReadTestFileToString(const std::string& file_name);
90 91
91 } // namespace net 92 } // namespace net
92 93
93 #endif // NET_CERT_INTERNAL_TEST_HELPERS_H_ 94 #endif // NET_CERT_INTERNAL_TEST_HELPERS_H_
OLDNEW
« no previous file with comments | « net/cert/internal/path_builder_verify_certificate_chain_unittest.cc ('k') | net/cert/internal/test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698