Index: net/spdy/spdy_http_stream_spdy3_unittest.cc |
diff --git a/net/spdy/spdy_http_stream_spdy3_unittest.cc b/net/spdy/spdy_http_stream_spdy3_unittest.cc |
index 49f61a6c9ca8e56d493734b5422aa4ff61d5a4f8..5f94c1df7e91804e3132fca69ba16f81fd2ff6ee 100644 |
--- a/net/spdy/spdy_http_stream_spdy3_unittest.cc |
+++ b/net/spdy/spdy_http_stream_spdy3_unittest.cc |
@@ -63,7 +63,7 @@ class SpdyHttpStreamSpdy3Test : public testing::Test { |
} |
void TestSendCredentials( |
- OriginBoundCertService* obc_service, |
+ ServerBoundCertService* sbc_service, |
const std::string& cert, |
const std::string& proof, |
SSLClientCertType type); |
@@ -247,8 +247,8 @@ TEST_F(SpdyHttpStreamSpdy3Test, SpdyURLTest) { |
namespace { |
-void GetECOriginBoundCertAndProof(const std::string& origin, |
- OriginBoundCertService* obc_service, |
+void GetECServerBoundCertAndProof(const std::string& origin, |
+ ServerBoundCertService* sbc_service, |
std::string* cert, |
std::string* proof) { |
TestCompletionCallback callback; |
@@ -256,8 +256,8 @@ void GetECOriginBoundCertAndProof(const std::string& origin, |
requested_cert_types.push_back(CLIENT_CERT_ECDSA_SIGN); |
SSLClientCertType cert_type; |
std::string key; |
- OriginBoundCertService::RequestHandle request_handle; |
- int rv = obc_service->GetOriginBoundCert(origin, requested_cert_types, |
+ ServerBoundCertService::RequestHandle request_handle; |
+ int rv = sbc_service->GetDomainBoundCert(origin, requested_cert_types, |
&cert_type, &key, cert, |
callback.callback(), |
&request_handle); |
@@ -279,7 +279,7 @@ void GetECOriginBoundCertAndProof(const std::string& origin, |
std::vector<uint8> proof_data; |
scoped_ptr<crypto::ECPrivateKey> private_key( |
crypto::ECPrivateKey::CreateFromEncryptedPrivateKeyInfo( |
- OriginBoundCertService::kEPKIPassword, key_data, spki)); |
+ ServerBoundCertService::kEPKIPassword, key_data, spki)); |
scoped_ptr<crypto::ECSignatureCreator> creator( |
crypto::ECSignatureCreator::Create(private_key.get())); |
creator->Sign(secret, arraysize(secret), &proof_data); |
@@ -288,14 +288,14 @@ void GetECOriginBoundCertAndProof(const std::string& origin, |
} // namespace |
-// TODO(rch): When openssl supports origin bound certifictes, this |
+// TODO(rch): When openssl supports server bound certifictes, this |
// guard can be removed |
#if !defined(USE_OPENSSL) |
// Test that if we request a resource for a new origin on a session that |
-// used origin bound certificates, that we send a CREDENTIAL frame for |
-// the new origin before we send the new request. |
+// used domain bound certificates, that we send a CREDENTIAL frame for |
+// the new domain before we send the new request. |
void SpdyHttpStreamSpdy3Test::TestSendCredentials( |
- OriginBoundCertService* obc_service, |
+ ServerBoundCertService* sbc_service, |
const std::string& cert, |
const std::string& proof, |
SSLClientCertType type) { |
@@ -334,8 +334,8 @@ void SpdyHttpStreamSpdy3Test::TestSendCredentials( |
writes, arraysize(writes))); |
socket_factory->AddSocketDataProvider(data.get()); |
SSLSocketDataProvider ssl(SYNCHRONOUS, OK); |
- ssl.origin_bound_cert_type = type; |
- ssl.origin_bound_cert_service = obc_service; |
+ ssl.domain_bound_cert_type = type; |
+ ssl.server_bound_cert_service = sbc_service; |
ssl.protocol_negotiated = SSLClientSocket::kProtoSPDY3; |
socket_factory->AddSSLSocketDataProvider(&ssl); |
http_session_ = SpdySessionDependencies::SpdyCreateSessionDeterministic( |
@@ -458,14 +458,14 @@ TEST_F(SpdyHttpStreamSpdy3Test, SendCredentialsEC) { |
crypto::ECSignatureCreator::SetFactoryForTesting( |
ec_signature_creator_factory.get()); |
- scoped_ptr<OriginBoundCertService> obc_service( |
- new OriginBoundCertService(new DefaultOriginBoundCertStore(NULL))); |
+ scoped_ptr<ServerBoundCertService> sbc_service( |
+ new ServerBoundCertService(new DefaultServerBoundCertStore(NULL))); |
std::string cert; |
std::string proof; |
- GetECOriginBoundCertAndProof("http://www.gmail.com/", obc_service.get(), |
+ GetECServerBoundCertAndProof("http://www.gmail.com/", sbc_service.get(), |
&cert, &proof); |
- TestSendCredentials(obc_service.get(), cert, proof, CLIENT_CERT_ECDSA_SIGN); |
+ TestSendCredentials(sbc_service.get(), cert, proof, CLIENT_CERT_ECDSA_SIGN); |
} |
#endif // !defined(USE_OPENSSL) |