Index: net/test/ct_test_util.h |
diff --git a/net/test/ct_test_util.h b/net/test/ct_test_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..67c22105381ea6b155492d5fe05ae4001bc3fa44 |
--- /dev/null |
+++ b/net/test/ct_test_util.h |
@@ -0,0 +1,34 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef NET_CERT_CT_TEST_UTIL_H_ |
+#define NET_CERT_CT_TEST_UTIL_H_ |
+ |
+#include <string> |
+ |
+namespace net { |
+ |
+class X509Certificate; |
+ |
+namespace ct { |
+ |
+struct LogEntry; |
+struct SignedCertificateTimestamp; |
+ |
+// Fills |entry| with test data for an X.509 entry. |
+void GetX509CertLogEntry(LogEntry* entry); |
+ |
+// 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.
|
+void GetPrecertLogEntry(LogEntry* entry); |
+ |
+// Returns the binary representation of a test DigitallySigned |
+std::string GetTestDigitallySigned(); |
+ |
+// Returns the binary representation of a test serialized SCT. |
+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.
|
+} // namespace ct |
+ |
+} // namespace net |
+ |
+#endif // NET_CERT_CT_TEST_UTIL_H_ |