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

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
« no previous file with comments | « net/quic/quic_stream_factory_test.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('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.h
===================================================================
--- net/quic/test_tools/crypto_test_utils.h (revision 280648)
+++ net/quic/test_tools/crypto_test_utils.h (working copy)
@@ -100,6 +100,15 @@
// returned by |ProofVerifierForTesting|.
static ProofVerifyContext* ProofVerifyContextForTesting();
+ // These functions return a fake |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* FakeProofSourceForTesting();
+ static ProofVerifier* FakeProofVerifierForTesting();
+ static ProofVerifyContext* FakeProofVerifyContextForTesting();
+
// 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,
« no previous file with comments | « net/quic/quic_stream_factory_test.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698