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

Unified Diff: net/spdy/spdy_websocket_stream_spdy3_unittest.cc

Issue 9817014: Created a new class SpdyTestStateHelper to serve as a helper to manage the state of a number of SPD… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO 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_websocket_stream_spdy2_unittest.cc ('k') | net/websockets/websocket_job_spdy2_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_websocket_stream_spdy3_unittest.cc
diff --git a/net/spdy/spdy_websocket_stream_spdy3_unittest.cc b/net/spdy/spdy_websocket_stream_spdy3_unittest.cc
index 737c9fa14b2eb7f556a9545996413c6975aa4ec2..d5a9f71c01f59d9fec22e08e457798cca5598ae9 100644
--- a/net/spdy/spdy_websocket_stream_spdy3_unittest.cc
+++ b/net/spdy/spdy_websocket_stream_spdy3_unittest.cc
@@ -189,7 +189,6 @@ class SpdyWebSocketStreamSpdy3Test : public testing::Test {
virtual ~SpdyWebSocketStreamSpdy3Test() {}
virtual void SetUp() {
- EnableCompression(false);
SpdySession::set_default_protocol(SSLClientSocket::kProtoSPDY3);
host_port_pair_.set_host("example.com");
@@ -213,9 +212,6 @@ class SpdyWebSocketStreamSpdy3Test : public testing::Test {
MessageLoop::current()->RunAllPending();
}
- void EnableCompression(bool enabled) {
- spdy::SpdyFramer::set_enable_compression_default(enabled);
- }
void Prepare(spdy::SpdyStreamId stream_id) {
stream_id_ = stream_id;
@@ -317,6 +313,9 @@ class SpdyWebSocketStreamSpdy3Test : public testing::Test {
static const char kClosingFrame[];
static const size_t kMessageFrameLength;
static const size_t kClosingFrameLength;
+
+ private:
+ SpdyTestStateHelper spdy_state_;
};
const char SpdyWebSocketStreamSpdy3Test::kMessageFrame[] = "\0hello\xff";
« no previous file with comments | « net/spdy/spdy_websocket_stream_spdy2_unittest.cc ('k') | net/websockets/websocket_job_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698