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

Unified Diff: net/test/spawned_test_server/base_test_server.h

Issue 1270043004: Add URLRequest unit tests for HPKP violation reports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GetLocalCertificatesDir() Created 5 years, 4 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/spawned_test_server/base_test_server.h
diff --git a/net/test/spawned_test_server/base_test_server.h b/net/test/spawned_test_server/base_test_server.h
index b72e5d3e05a5ab4aa427e85ea345f93fea3db5b6..9eda67a29f693bf7cadd4a174be726144047c993 100644
--- a/net/test/spawned_test_server/base_test_server.h
+++ b/net/test/spawned_test_server/base_test_server.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "net/base/host_port_pair.h"
#include "net/ssl/ssl_client_cert_type.h"
@@ -25,6 +26,7 @@ namespace net {
class AddressList;
class ScopedPortException;
+class X509Certificate;
// The base class of Test server implementation.
class BaseTestServer {
@@ -271,6 +273,9 @@ class BaseTestServer {
// the duration of tests.
bool LoadTestRootCert() const WARN_UNUSED_RESULT;
+ // Returns the certificate that the server is using.
+ scoped_refptr<X509Certificate> GetCertificate() const;
+
protected:
virtual ~BaseTestServer();
Type type() const { return type_; }
« no previous file with comments | « net/data/url_request_unittest/hpkp-headers.html.mock-http-headers ('k') | net/test/spawned_test_server/base_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698