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

Unified Diff: net/test/ct_test_util.cc

Issue 1845113003: Certificate Transparency: Start tracking logs' state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed passing of scoped_refptr Created 4 years, 7 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
Index: net/test/ct_test_util.cc
diff --git a/net/test/ct_test_util.cc b/net/test/ct_test_util.cc
index 6f2a47e6da7655273eb075ce54655bbf480fe955..c22dd3a4ddb8c2906c3ecadd343f708fc0a31739 100644
--- a/net/test/ct_test_util.cc
+++ b/net/test/ct_test_util.cc
@@ -279,6 +279,7 @@ bool GetSampleSignedTreeHead(SignedTreeHead* sth) {
sth->tree_size = kSampleSTHTreeSize;
std::string sha256_root_hash = GetSampleSTHSHA256RootHash();
memcpy(sth->sha256_root_hash, sha256_root_hash.c_str(), kSthRootHashLength);
+ sth->log_id = GetTestPublicKeyId();
return GetSampleSTHTreeHeadDecodedSignature(&(sth->signature));
}
@@ -291,6 +292,7 @@ bool GetSampleEmptySignedTreeHead(SignedTreeHead* sth) {
std::string empty_root_hash = HexToBytes(
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855");
memcpy(sth->sha256_root_hash, empty_root_hash.c_str(), kSthRootHashLength);
+ sth->log_id = GetTestPublicKeyId();
std::string tree_head_signature = HexToBytes(
"040300463044022046c26401de9416403da54762dc1f1687c38eafd791b15e484ab4c5f7"
@@ -306,6 +308,7 @@ bool GetBadEmptySignedTreeHead(SignedTreeHead* sth) {
base::TimeDelta::FromMilliseconds(INT64_C(1450870952897));
sth->tree_size = 0;
memset(sth->sha256_root_hash, 'f', kSthRootHashLength);
+ sth->log_id = GetTestPublicKeyId();
std::string tree_head_signature = HexToBytes(
"04030046304402207cab04c62dee5d1cbc95fec30cd8417313f71587b75f133ad2e6f324"
« components/certificate_transparency/tree_state_tracker.cc ('K') | « net/cert/ct_verifier.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698