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

Unified Diff: net/quic/test_tools/crypto_test_utils.h

Issue 346323002: net: Implement ChannelIDSourceChromium, which is based on Chromium's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebase Created 6 years, 6 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/quic/test_tools/crypto_test_utils.h
===================================================================
--- net/quic/test_tools/crypto_test_utils.h (revision 279242)
+++ net/quic/test_tools/crypto_test_utils.h (working copy)
@@ -100,6 +100,15 @@
// returned by |ProofVerifierForTesting|.
static ProofVerifyContext* ProofVerifyContextForTesting();
+ // These functions return a mocked |ProofSource|, |ProofVerifier|, or
+ // |ProofVerifyContext| that works with each other. These are suitable for
+ // unit tests that aren't concerned with |ProofSource| and |ProofVerifier|.
+ // TODO(wtc): delete these when Chromium has a working
+ // ProofSourceForTesting().
+ static ProofSource* MockProofSourceForTesting();
+ static ProofVerifier* MockProofVerifierForTesting();
+ static ProofVerifyContext* MockProofVerifyContextForTesting();
+
// MockCommonCertSets returns a CommonCertSets that contains a single set with
// hash |hash|, consisting of the certificate |cert| at index |index|.
static CommonCertSets* MockCommonCertSets(base::StringPiece cert,

Powered by Google App Engine
This is Rietveld 408576698