Chromium Code Reviews| 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 PreCert entry. | |
|
wtc
2013/10/24 23:14:23
Nit: PreCert => Precertificate
PreCert seems to r
Eran M. (Google)
2013/10/30 18:00:08
Done.
| |
| 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(); | |
|
wtc
2013/10/24 23:14:23
Nit: add a blank line after this line.
Eran M. (Google)
2013/10/30 18:00:08
Done.
| |
| 30 } // namespace ct | |
| 31 | |
| 32 } // namespace net | |
| 33 | |
| 34 #endif // NET_CERT_CT_TEST_UTIL_H_ | |
| OLD | NEW |