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

Side by Side Diff: net/cert/cert_verify_proc.h

Issue 2629093002: Parameterize the CertVerifyProc tests so they can be run with (Closed)
Patch Set: Address comments Created 3 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CERT_VERIFY_PROC_H_ 5 #ifndef NET_CERT_CERT_VERIFY_PROC_H_
6 #define NET_CERT_CERT_VERIFY_PROC_H_ 6 #define NET_CERT_CERT_VERIFY_PROC_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // to the Verify() call. The |ocsp_response| parameter passed to Verify() is 75 // to the Verify() call. The |ocsp_response| parameter passed to Verify() is
76 // ignored when this returns false. 76 // ignored when this returns false.
77 virtual bool SupportsOCSPStapling() const = 0; 77 virtual bool SupportsOCSPStapling() const = 0;
78 78
79 protected: 79 protected:
80 CertVerifyProc(); 80 CertVerifyProc();
81 virtual ~CertVerifyProc(); 81 virtual ~CertVerifyProc();
82 82
83 private: 83 private:
84 friend class base::RefCountedThreadSafe<CertVerifyProc>; 84 friend class base::RefCountedThreadSafe<CertVerifyProc>;
85 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcTest, DigiNotarCerts); 85 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcBaseClassTest, DigiNotarCerts);
86 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcTest, TestHasTooLongValidity); 86 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcBaseClassTest, TestHasTooLongValidity);
87 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcTest, 87 FRIEND_TEST_ALL_PREFIXES(CertVerifyProcBaseClassTest,
88 VerifyRejectsSHA1AfterDeprecationLegacyMode); 88 VerifyRejectsSHA1AfterDeprecationLegacyMode);
89 89
90 // Performs the actual verification using the desired underlying 90 // Performs the actual verification using the desired underlying
91 // 91 //
92 // On entry, |verify_result| will be default-initialized as a successful 92 // On entry, |verify_result| will be default-initialized as a successful
93 // validation, with |verify_result->verified_cert| set to |cert|. 93 // validation, with |verify_result->verified_cert| set to |cert|.
94 // 94 //
95 // Implementations are expected to fill in all applicable fields, excluding: 95 // Implementations are expected to fill in all applicable fields, excluding:
96 // 96 //
97 // * ocsp_result 97 // * ocsp_result
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // Emergency kill-switch for SHA-1 deprecation. Disabled by default. 146 // Emergency kill-switch for SHA-1 deprecation. Disabled by default.
147 static const base::Feature kSHA1LegacyMode; 147 static const base::Feature kSHA1LegacyMode;
148 const bool sha1_legacy_mode_enabled; 148 const bool sha1_legacy_mode_enabled;
149 149
150 DISALLOW_COPY_AND_ASSIGN(CertVerifyProc); 150 DISALLOW_COPY_AND_ASSIGN(CertVerifyProc);
151 }; 151 };
152 152
153 } // namespace net 153 } // namespace net
154 154
155 #endif // NET_CERT_CERT_VERIFY_PROC_H_ 155 #endif // NET_CERT_CERT_VERIFY_PROC_H_
OLDNEW
« no previous file with comments | « no previous file | net/cert/cert_verify_proc_unittest.cc » ('j') | net/cert/cert_verify_proc_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698