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

Unified Diff: net/test/ct_test_util.cc

Issue 2824983002: Rename net::ct::LogEntry to SignedEntryData and clarify the comment. (Closed)
Patch Set: sort forward decls Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/test/ct_test_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/ct_test_util.cc
diff --git a/net/test/ct_test_util.cc b/net/test/ct_test_util.cc
index f9862e0cc6000cffd797349df5cb748c8bc6a1fb..138f1386299180c97db3255a3a4e8d6c1ccfc187 100644
--- a/net/test/ct_test_util.cc
+++ b/net/test/ct_test_util.cc
@@ -173,21 +173,21 @@ size_t kSampleSTHTreeSize = 21u;
} // namespace
-void GetX509CertLogEntry(LogEntry* entry) {
- entry->type = ct::LogEntry::LOG_ENTRY_TYPE_X509;
+void GetX509CertSignedEntry(SignedEntryData* entry) {
+ entry->type = ct::SignedEntryData::LOG_ENTRY_TYPE_X509;
entry->leaf_certificate = HexToBytes(kDefaultDerCert);
}
void GetX509CertTreeLeaf(MerkleTreeLeaf* tree_leaf) {
tree_leaf->timestamp = base::Time::FromJsTime(kTestTimestamp);
- GetX509CertLogEntry(&tree_leaf->log_entry);
+ GetX509CertSignedEntry(&tree_leaf->signed_entry);
tree_leaf->extensions = HexToBytes(kDefaultExtensions);
}
std::string GetDerEncodedX509Cert() { return HexToBytes(kDefaultDerCert); }
-void GetPrecertLogEntry(LogEntry* entry) {
- entry->type = ct::LogEntry::LOG_ENTRY_TYPE_PRECERT;
+void GetPrecertSignedEntry(SignedEntryData* entry) {
+ entry->type = ct::SignedEntryData::LOG_ENTRY_TYPE_PRECERT;
std::string issuer_hash(HexToBytes(kDefaultIssuerKeyHash));
memcpy(entry->issuer_key_hash.data, issuer_hash.data(), issuer_hash.size());
entry->tbs_certificate = HexToBytes(kDefaultDerTbsCert);
@@ -195,7 +195,7 @@ void GetPrecertLogEntry(LogEntry* entry) {
void GetPrecertTreeLeaf(MerkleTreeLeaf* tree_leaf) {
tree_leaf->timestamp = base::Time::FromJsTime(kTestTimestamp);
- GetPrecertLogEntry(&tree_leaf->log_entry);
+ GetPrecertSignedEntry(&tree_leaf->signed_entry);
tree_leaf->extensions = HexToBytes(kDefaultExtensions);
}
« no previous file with comments | « net/test/ct_test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698