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

Unified Diff: net/spdy/buffered_spdy_framer_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/buffered_spdy_framer_spdy2_unittest.cc ('k') | net/spdy/spdy_http_stream_spdy2_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/buffered_spdy_framer_spdy3_unittest.cc
diff --git a/net/spdy/buffered_spdy_framer_spdy3_unittest.cc b/net/spdy/buffered_spdy_framer_spdy3_unittest.cc
index e18c688beb7a4af7f62c7da47c230a35af9bba67..27f871739c04a811d6f525e63a3e15b249df1370 100644
--- a/net/spdy/buffered_spdy_framer_spdy3_unittest.cc
+++ b/net/spdy/buffered_spdy_framer_spdy3_unittest.cc
@@ -143,10 +143,6 @@ class TestBufferedSpdyVisitor : public BufferedSpdyFramerVisitorInterface {
class BufferedSpdyFramerSpdy3Test : public PlatformTest {
protected:
- void EnableCompression(bool enabled) {
- SpdyFramer::set_enable_compression_default(enabled);
- }
-
// Returns true if the two header blocks have equivalent content.
bool CompareHeaderBlocks(const SpdyHeaderBlock* expected,
const SpdyHeaderBlock* actual) {
@@ -173,11 +169,12 @@ class BufferedSpdyFramerSpdy3Test : public PlatformTest {
}
return true;
}
+
+ private:
+ SpdyTestStateHelper spdy_state_;
};
TEST_F(BufferedSpdyFramerSpdy3Test, OnSetting) {
- EnableCompression(false);
-
SpdyFramer framer(3);
SpdySettings settings;
settings.push_back(SpdySetting(SettingsFlagsAndId(0, 1), 0x00000002));
@@ -194,8 +191,6 @@ TEST_F(BufferedSpdyFramerSpdy3Test, OnSetting) {
}
TEST_F(BufferedSpdyFramerSpdy3Test, ReadSynStreamHeaderBlock) {
- EnableCompression(false);
-
SpdyHeaderBlock headers;
headers["aa"] = "vv";
headers["bb"] = "ww";
@@ -221,8 +216,6 @@ TEST_F(BufferedSpdyFramerSpdy3Test, ReadSynStreamHeaderBlock) {
}
TEST_F(BufferedSpdyFramerSpdy3Test, ReadSynReplyHeaderBlock) {
- EnableCompression(false);
-
SpdyHeaderBlock headers;
headers["alpha"] = "beta";
headers["gamma"] = "delta";
@@ -246,8 +239,6 @@ TEST_F(BufferedSpdyFramerSpdy3Test, ReadSynReplyHeaderBlock) {
}
TEST_F(BufferedSpdyFramerSpdy3Test, ReadHeadersHeaderBlock) {
- EnableCompression(false);
-
SpdyHeaderBlock headers;
headers["alpha"] = "beta";
headers["gamma"] = "delta";
« no previous file with comments | « net/spdy/buffered_spdy_framer_spdy2_unittest.cc ('k') | net/spdy/spdy_http_stream_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698