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

Unified Diff: net/spdy/spdy_http_stream_spdy2_unittest.cc

Issue 9618002: SPDY - integration of spdy/3 code. (Closed) Base URL: svn://chrome-svn/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
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_http_stream_spdy3_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_http_stream_spdy2_unittest.cc
===================================================================
--- net/spdy/spdy_http_stream_spdy2_unittest.cc (revision 126086)
+++ net/spdy/spdy_http_stream_spdy2_unittest.cc (working copy)
@@ -29,10 +29,15 @@
spdy::SpdyFramer::set_enable_compression_default(enabled);
}
+ virtual void SetUp() {
+ SpdySession::set_default_protocol(SSLClientSocket::kProtoSPDY2);
+ }
+
virtual void TearDown() {
crypto::ECSignatureCreator::SetFactoryForTesting(NULL);
MessageLoop::current()->RunAllPending();
}
+
int InitSession(MockRead* reads, size_t reads_count,
MockWrite* writes, size_t writes_count,
HostPortPair& host_port_pair) {
@@ -447,22 +452,6 @@
DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreatorFactory);
};
-TEST_F(SpdyHttpStreamSpdy2Test, SendCredentialsEC) {
- scoped_ptr<crypto::ECSignatureCreatorFactory> ec_signature_creator_factory(
- new MockECSignatureCreatorFactory());
- crypto::ECSignatureCreator::SetFactoryForTesting(
- ec_signature_creator_factory.get());
-
- scoped_ptr<OriginBoundCertService> obc_service(
- new OriginBoundCertService(new DefaultOriginBoundCertStore(NULL)));
- std::string cert;
- std::string proof;
- GetECOriginBoundCertAndProof("http://www.gmail.com/", obc_service.get(),
- &cert, &proof);
-
- TestSendCredentials(obc_service.get(), cert, proof, CLIENT_CERT_ECDSA_SIGN);
-}
-
#endif // !defined(USE_OPENSSL)
// TODO(willchan): Write a longer test for SpdyStream that exercises all
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_http_stream_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698