summaryrefslogtreecommitdiffstats
path: root/net/socket/socket_test_util.h
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-08 02:45:39 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-08 02:45:39 +0000
commit61f3ddf4645c33f546e3b80058514966253a4342 (patch)
tree83999385dd746a7c6781879a89f550634d94e656 /net/socket/socket_test_util.h
parentd3ecc939b68dbb3ee922d2fd04d89230c7b62733 (diff)
downloadchromium_src-61f3ddf4645c33f546e3b80058514966253a4342.zip
chromium_src-61f3ddf4645c33f546e3b80058514966253a4342.tar.gz
chromium_src-61f3ddf4645c33f546e3b80058514966253a4342.tar.bz2
Adds support for the credentials frame.
Need to allow spdy sessions to see if the underlying socket is required OBCs. If so, and if pooling a connection, then we need to generate a CREDENTIALS frame for this origin. Need to add support for the RST_FRAME status code of INVALID CREDENTIALS Review URL: http://codereview.chromium.org/9294001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120923 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/socket_test_util.h')
-rw-r--r--net/socket/socket_test_util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h
index a9739cd..547a807 100644
--- a/net/socket/socket_test_util.h
+++ b/net/socket/socket_test_util.h
@@ -48,6 +48,7 @@ enum {
class AsyncSocket;
class MockClientSocket;
+class OriginBoundCertService;
class SSLClientSocket;
class SSLHostInfo;
class StreamSocket;
@@ -269,6 +270,8 @@ struct SSLSocketDataProvider {
bool client_cert_sent;
SSLCertRequestInfo* cert_request_info;
scoped_refptr<X509Certificate> cert;
+ SSLClientCertType origin_bound_cert_type;
+ OriginBoundCertService* origin_bound_cert_service;
};
// A DataProvider where the client must write a request before the reads (e.g.
@@ -588,6 +591,7 @@ class MockClientSocket : public SSLClientSocket {
unsigned int outlen) OVERRIDE;
virtual NextProtoStatus GetNextProto(std::string* proto,
std::string* server_protos) OVERRIDE;
+ virtual OriginBoundCertService* GetOriginBoundCertService() const OVERRIDE;
protected:
virtual ~MockClientSocket();
@@ -742,6 +746,12 @@ class MockSSLClientSocket : public MockClientSocket, public AsyncSocket {
// This MockSocket does not implement the manual async IO feature.
virtual void OnReadComplete(const MockRead& data) OVERRIDE;
+ virtual bool WasOriginBoundCertSent() const OVERRIDE;
+ virtual SSLClientCertType origin_bound_cert_type() const OVERRIDE;
+ virtual SSLClientCertType set_origin_bound_cert_type(
+ SSLClientCertType type) OVERRIDE;
+ virtual OriginBoundCertService* GetOriginBoundCertService() const OVERRIDE;
+
private:
static void ConnectCallback(MockSSLClientSocket *ssl_client_socket,
const CompletionCallback& callback,