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

Unified Diff: net/spdy/spdy_test_util_common.h

Issue 284423002: Remove HttpStreamFactory's NPN/SPDY globals, except for spdy_enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge Created 6 years, 7 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_network_transaction_unittest.cc ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_test_util_common.h
diff --git a/net/spdy/spdy_test_util_common.h b/net/spdy/spdy_test_util_common.h
index af052f73b3e64d2c58b052f5eff0b552eab18b78..bbecf14e1eab01287b1e851303952756b5d5d444 100644
--- a/net/spdy/spdy_test_util_common.h
+++ b/net/spdy/spdy_test_util_common.h
@@ -50,7 +50,7 @@ const int kUploadDataSize = arraysize(kUploadData)-1;
// SpdyNextProtos returns a vector of next protocols for negotiating
// SPDY.
-std::vector<NextProto> SpdyNextProtos();
+NextProtoVector SpdyNextProtos();
// Chop a frame into an array of MockWrites.
// |data| is the frame to chop.
@@ -218,13 +218,19 @@ struct SpdySessionDependencies {
NextProto protocol;
size_t stream_initial_recv_window_size;
SpdySession::TimeFunc time_func;
+ NextProtoVector next_protos;
std::string trusted_spdy_proxy;
+ bool force_spdy_over_ssl;
+ bool force_spdy_always;
+ bool use_alternate_protocols;
NetLog* net_log;
};
class SpdyURLRequestContext : public URLRequestContext {
public:
- explicit SpdyURLRequestContext(NextProto protocol);
+ SpdyURLRequestContext(NextProto protocol,
+ bool force_spdy_over_ssl,
+ bool force_spdy_always);
virtual ~SpdyURLRequestContext();
MockClientSocketFactory& socket_factory() { return socket_factory_; }
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698