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

Unified Diff: net/spdy/spdy_websocket_stream_spdy2_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_test_util_spdy3.cc ('k') | net/spdy/spdy_websocket_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_websocket_stream_spdy2_unittest.cc
diff --git a/net/spdy/spdy_websocket_stream_spdy2_unittest.cc b/net/spdy/spdy_websocket_stream_spdy2_unittest.cc
index 1fceb149035b1791d8b3bacf61eb8c1660796ebe..59d533d53819893941b8507fc06820f7a1cfb37f 100644
--- a/net/spdy/spdy_websocket_stream_spdy2_unittest.cc
+++ b/net/spdy/spdy_websocket_stream_spdy2_unittest.cc
@@ -189,7 +189,6 @@ class SpdyWebSocketStreamSpdy2Test : public testing::Test {
virtual ~SpdyWebSocketStreamSpdy2Test() {}
virtual void SetUp() {
- EnableCompression(false);
SpdySession::set_default_protocol(SSLClientSocket::kProtoSPDY2);
host_port_pair_.set_host("example.com");
@@ -213,9 +212,6 @@ class SpdyWebSocketStreamSpdy2Test : 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 SpdyWebSocketStreamSpdy2Test : public testing::Test {
static const char kClosingFrame[];
static const size_t kMessageFrameLength;
static const size_t kClosingFrameLength;
+
+ private:
+ SpdyTestStateHelper spdy_state_;
};
const char SpdyWebSocketStreamSpdy2Test::kMessageFrame[] = "\0hello\xff";
« no previous file with comments | « net/spdy/spdy_test_util_spdy3.cc ('k') | net/spdy/spdy_websocket_stream_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698