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

Unified Diff: net/quic/test_tools/crypto_test_utils_chromium.cc

Issue 1421853006: Landing Recent QUIC changes until: Fri Oct 30 22:23:58 2015 +0000 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 5 years, 1 month 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/quic/test_tools/crypto_test_utils.cc ('k') | net/quic/test_tools/quic_connection_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/crypto_test_utils_chromium.cc
diff --git a/net/quic/test_tools/crypto_test_utils_chromium.cc b/net/quic/test_tools/crypto_test_utils_chromium.cc
index ffa1788c0148daa6acbf26631566b825765011dc..8ff3c97753300f0b081f792d6be99e4d8311a3f4 100644
--- a/net/quic/test_tools/crypto_test_utils_chromium.cc
+++ b/net/quic/test_tools/crypto_test_utils_chromium.cc
@@ -50,6 +50,7 @@ class TestProofVerifierChromium : public ProofVerifierChromium {
const char kLeafCert[] = "leaf";
const char kIntermediateCert[] = "intermediate";
const char kSignature[] = "signature";
+const char kSCT[] = "CryptoServerTests";
class FakeProofSource : public ProofSource {
public:
@@ -65,9 +66,11 @@ class FakeProofSource : public ProofSource {
const std::string& server_config,
bool ecdsa_ok,
const std::vector<std::string>** out_certs,
- std::string* out_signature) override {
+ std::string* out_signature,
+ std::string* out_leaf_cert_sct) override {
*out_certs = &certs_;
*out_signature = kSignature;
+ *out_leaf_cert_sct = kSCT;
return true;
}
@@ -117,7 +120,8 @@ ProofSource* CryptoTestUtils::ProofSourceForTesting() {
base::FilePath certs_dir = GetTestCertsDirectory();
CHECK(source->Initialize(
certs_dir.AppendASCII("quic_test.example.com.crt"),
- certs_dir.AppendASCII("quic_test.example.com.key.pkcs8")));
+ certs_dir.AppendASCII("quic_test.example.com.key.pkcs8"),
+ certs_dir.AppendASCII("quic_test.example.com.key.sct")));
return source;
}
« no previous file with comments | « net/quic/test_tools/crypto_test_utils.cc ('k') | net/quic/test_tools/quic_connection_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698