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

Unified Diff: net/test/test_server.h

Issue 9663017: net: add OCSP tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 8 years, 9 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/test_server.h
diff --git a/net/test/test_server.h b/net/test/test_server.h
index 5c04a40ff92091c66dea4707eb9744e19b6f5cee..0aa9ff0ff8a8510de08694f14b6b74961fd23e48 100644
--- a/net/test/test_server.h
+++ b/net/test/test_server.h
@@ -62,6 +62,12 @@ class TestServer {
// TestRootStore) is expected to have a self-signed version of the
// intermediate.
CERT_CHAIN_WRONG_ROOT,
+ // OCSP_* causes TestServer to run both an HTTPS and HTTP server. The
+ // HTTP server answers OCSP queries for the HTTPS certificate, which is
+ // generated on the fly.
+ OCSP_OK,
+ OCSP_REVOKED,
+ OCSP_INVALID,
};
// Bitmask of bulk encryption algorithms that the test server supports
@@ -92,6 +98,10 @@ class TestServer {
// |server_certificate|.
FilePath GetCertificateFile() const;
+ // If the certificate is a magic string, rather than a file on disk, this
+ // returns the string to use. Otherwise it returns an empty string.
+ std::string GetSpecialCertificateString() const;
+
// The certificate to use when serving requests.
ServerCertificate server_certificate;

Powered by Google App Engine
This is Rietveld 408576698