| Index: net/test/ct_test_util.cc
|
| diff --git a/net/test/ct_test_util.cc b/net/test/ct_test_util.cc
|
| index db690e3b6e16d423da5e943fb2bdcb1f33cf89b0..44b173f9ef4c2dd5b04f5a39758fd77879c72f5e 100644
|
| --- a/net/test/ct_test_util.cc
|
| +++ b/net/test/ct_test_util.cc
|
| @@ -133,7 +133,10 @@ std::string GetTestPublicKeyId() {
|
| return HexToBytes(kTestKeyId);
|
| }
|
|
|
| -void GetX509CertSCT(SignedCertificateTimestamp* sct) {
|
| +void GetX509CertSCT(scoped_refptr<SignedCertificateTimestamp>* sct_ref) {
|
| + CHECK(sct_ref != NULL);
|
| + *sct_ref = new SignedCertificateTimestamp();
|
| + SignedCertificateTimestamp *const sct(sct_ref->get());
|
| sct->log_id = HexToBytes(kTestKeyId);
|
| sct->timestamp = base::Time::UnixEpoch() +
|
| base::TimeDelta::FromMilliseconds(GG_UINT64_C(1365181456089));
|
| @@ -144,7 +147,10 @@ void GetX509CertSCT(SignedCertificateTimestamp* sct) {
|
| sct->signature.signature_data = HexToBytes(kTestSCTSignatureData);
|
| }
|
|
|
| -void GetPrecertSCT(SignedCertificateTimestamp* sct) {
|
| +void GetPrecertSCT(scoped_refptr<SignedCertificateTimestamp>* sct_ref) {
|
| + CHECK(sct_ref != NULL);
|
| + *sct_ref = new SignedCertificateTimestamp();
|
| + SignedCertificateTimestamp *const sct(sct_ref->get());
|
| sct->log_id = HexToBytes(kTestKeyId);
|
| sct->timestamp = base::Time::UnixEpoch() +
|
| base::TimeDelta::FromMilliseconds(GG_UINT64_C(1365181456275));
|
|
|