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

Side by Side Diff: net/base/x509_certificate.h

Issue 9553014: Move certificate verification tests from X509CertificateTest to CertVerifyProcTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
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_BASE_X509_CERTIFICATE_H_ 5 #ifndef NET_BASE_X509_CERTIFICATE_H_
6 #define NET_BASE_X509_CERTIFICATE_H_ 6 #define NET_BASE_X509_CERTIFICATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 // Calculates the SHA-1 fingerprint of the intermediate CA certificates. 444 // Calculates the SHA-1 fingerprint of the intermediate CA certificates.
445 // Returns an empty (all zero) fingerprint on failure. 445 // Returns an empty (all zero) fingerprint on failure.
446 static SHA1Fingerprint CalculateCAFingerprint( 446 static SHA1Fingerprint CalculateCAFingerprint(
447 const OSCertHandles& intermediates); 447 const OSCertHandles& intermediates);
448 448
449 private: 449 private:
450 friend class base::RefCountedThreadSafe<X509Certificate>; 450 friend class base::RefCountedThreadSafe<X509Certificate>;
451 friend class TestRootCerts; // For unit tests 451 friend class TestRootCerts; // For unit tests
452 // TODO(rsleevi): Temporary refactoring - http://crbug.com/114343 452 // TODO(rsleevi): Temporary refactoring - http://crbug.com/114343
453 friend class X509CertificateTest;
454 friend class CertVerifyProcMac; 453 friend class CertVerifyProcMac;
455 friend class CertVerifyProcNSS; 454 friend class CertVerifyProcNSS;
456 friend class CertVerifyProcOpenSSL; 455 friend class CertVerifyProcOpenSSL;
457 friend class CertVerifyProcWin; 456 friend class CertVerifyProcWin;
458 457
459 FRIEND_TEST_ALL_PREFIXES(X509CertificateNameVerifyTest, VerifyHostname); 458 FRIEND_TEST_ALL_PREFIXES(X509CertificateNameVerifyTest, VerifyHostname);
460 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, DigiNotarCerts); 459 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, DigiNotarCerts);
461 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, SerialNumbers); 460 FRIEND_TEST_ALL_PREFIXES(X509CertificateTest, SerialNumbers);
462 461
463 // Construct an X509Certificate from a handle to the certificate object 462 // Construct an X509Certificate from a handle to the certificate object
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 // (Marked mutable because it's used in a const method.) 605 // (Marked mutable because it's used in a const method.)
607 mutable base::Lock verification_lock_; 606 mutable base::Lock verification_lock_;
608 #endif 607 #endif
609 608
610 DISALLOW_COPY_AND_ASSIGN(X509Certificate); 609 DISALLOW_COPY_AND_ASSIGN(X509Certificate);
611 }; 610 };
612 611
613 } // namespace net 612 } // namespace net
614 613
615 #endif // NET_BASE_X509_CERTIFICATE_H_ 614 #endif // NET_BASE_X509_CERTIFICATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698