Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_CT_TEST_UTIL_H_ | 5 #ifndef NET_CERT_CT_TEST_UTIL_H_ |
| 6 #define NET_CERT_CT_TEST_UTIL_H_ | 6 #define NET_CERT_CT_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
|
wtc
2013/11/19 21:41:44
Nit: add a blank line after this line.
wtc
2013/11/21 03:13:46
Please fix this.
alcutter
2013/11/21 10:48:19
Done.
| |
| 9 #include "base/memory/ref_counted.h" | |
| 9 | 10 |
| 10 namespace net { | 11 namespace net { |
| 11 | 12 |
| 12 class X509Certificate; | |
| 13 | |
| 14 namespace ct { | 13 namespace ct { |
| 15 | 14 |
| 16 struct LogEntry; | 15 struct LogEntry; |
| 17 struct SignedCertificateTimestamp; | 16 struct SignedCertificateTimestamp; |
| 18 | 17 |
| 19 // Note: unless specified otherwise, all test data is taken from Certificate | 18 // Note: unless specified otherwise, all test data is taken from Certificate |
| 20 // Transparency test data repository. | 19 // Transparency test data repository. |
| 21 | 20 |
| 22 // Fills |entry| with test data for an X.509 entry. | 21 // Fills |entry| with test data for an X.509 entry. |
| 23 void GetX509CertLogEntry(LogEntry* entry); | 22 void GetX509CertLogEntry(LogEntry* entry); |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 35 // Returns the binary representation of a test serialized SCT. | 34 // Returns the binary representation of a test serialized SCT. |
| 36 std::string GetTestSignedCertificateTimestamp(); | 35 std::string GetTestSignedCertificateTimestamp(); |
| 37 | 36 |
| 38 // Test log key | 37 // Test log key |
| 39 std::string GetTestPublicKey(); | 38 std::string GetTestPublicKey(); |
| 40 | 39 |
| 41 // ID of test log key | 40 // ID of test log key |
| 42 std::string GetTestPublicKeyId(); | 41 std::string GetTestPublicKeyId(); |
| 43 | 42 |
| 44 // SCT for the X509Certificate provided above. | 43 // SCT for the X509Certificate provided above. |
| 45 void GetX509CertSCT(SignedCertificateTimestamp* sct); | 44 void GetX509CertSCT(scoped_refptr<SignedCertificateTimestamp>* sct); |
| 46 | 45 |
| 47 // SCT for the Precertificate log entry provided above. | 46 // SCT for the Precertificate log entry provided above. |
| 48 void GetPrecertSCT(SignedCertificateTimestamp* sct); | 47 void GetPrecertSCT(scoped_refptr<SignedCertificateTimestamp>* sct); |
| 49 | 48 |
| 50 // Issuer key hash | 49 // Issuer key hash |
| 51 std::string GetDefaultIssuerKeyHash(); | 50 std::string GetDefaultIssuerKeyHash(); |
| 52 | 51 |
| 53 } // namespace ct | 52 } // namespace ct |
| 54 | 53 |
| 55 } // namespace net | 54 } // namespace net |
| 56 | 55 |
| 57 #endif // NET_CERT_CT_TEST_UTIL_H_ | 56 #endif // NET_CERT_CT_TEST_UTIL_H_ |
| OLD | NEW |