OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_CERT_CT_TEST_UTIL_H_ |
| 6 #define NET_CERT_CT_TEST_UTIL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 namespace net { |
| 11 |
| 12 class X509Certificate; |
| 13 |
| 14 namespace ct { |
| 15 |
| 16 struct LogEntry; |
| 17 struct SignedCertificateTimestamp; |
| 18 |
| 19 // Fills |entry| with test data for an X.509 entry. |
| 20 void GetX509CertLogEntry(LogEntry* entry); |
| 21 |
| 22 // Fills |entry| with test data for a Precertificate entry. |
| 23 void GetPrecertLogEntry(LogEntry* entry); |
| 24 |
| 25 // Returns the binary representation of a test DigitallySigned |
| 26 std::string GetTestDigitallySigned(); |
| 27 |
| 28 // Returns the binary representation of a test serialized SCT. |
| 29 std::string GetTestSignedCertificateTimestamp(); |
| 30 |
| 31 } // namespace ct |
| 32 |
| 33 } // namespace net |
| 34 |
| 35 #endif // NET_CERT_CT_TEST_UTIL_H_ |
OLD | NEW |