| Index: net/spdy/spdy_network_transaction_spdy2_unittest.cc
|
| diff --git a/net/spdy/spdy_network_transaction_spdy2_unittest.cc b/net/spdy/spdy_network_transaction_spdy2_unittest.cc
|
| index 6ce7afee53d1eac24680ac814a81a8fa1e43cc28..40b0c6a239e4d265d10787161604370ec302cace 100644
|
| --- a/net/spdy/spdy_network_transaction_spdy2_unittest.cc
|
| +++ b/net/spdy/spdy_network_transaction_spdy2_unittest.cc
|
| @@ -39,8 +39,6 @@ class SpdyNetworkTransactionSpdy2Test
|
| protected:
|
|
|
| virtual void SetUp() {
|
| - // By default, all tests turn off compression.
|
| - EnableCompression(false);
|
| SpdySession::set_default_protocol(SSLClientSocket::kProtoSPDY2);
|
| google_get_request_initialized_ = false;
|
| google_post_request_initialized_ = false;
|
| @@ -59,10 +57,6 @@ class SpdyNetworkTransactionSpdy2Test
|
| HttpResponseInfo response_info;
|
| };
|
|
|
| - void EnableCompression(bool enabled) {
|
| - spdy::SpdyFramer::set_enable_compression_default(enabled);
|
| - }
|
| -
|
| // A helper class that handles all the initial npn/ssl setup.
|
| class NormalSpdyTransactionHelper {
|
| public:
|
| @@ -529,6 +523,7 @@ class SpdyNetworkTransactionSpdy2Test
|
| HttpRequestInfo google_post_request_;
|
| HttpRequestInfo google_chunked_post_request_;
|
| HttpRequestInfo google_get_push_request_;
|
| + SpdyTestStateHelper spdy_state_;
|
| };
|
|
|
| //-----------------------------------------------------------------------------
|
| @@ -1055,8 +1050,6 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, ThreeGetsWithMaxConcurrent) {
|
| // user specified priority, we expect to see them inverted in
|
| // the response from the server.
|
| TEST_P(SpdyNetworkTransactionSpdy2Test, FourGetsWithMaxConcurrentPriority) {
|
| - SpdySession::set_enable_ping_based_connection_checking(false);
|
| -
|
| // Construct the request.
|
| scoped_ptr<spdy::SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST));
|
| scoped_ptr<spdy::SpdyFrame> resp(ConstructSpdyGetSynReply(NULL, 0, 1));
|
| @@ -3444,7 +3437,7 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, PartialWrite) {
|
| // the server. Verify that teardown is all clean.
|
| TEST_P(SpdyNetworkTransactionSpdy2Test, DecompressFailureOnSynReply) {
|
| // For this test, we turn on the normal compression.
|
| - EnableCompression(true);
|
| + spdy::SpdyFramer::set_enable_compression_default(true);
|
|
|
| scoped_ptr<spdy::SpdyFrame> compressed(
|
| ConstructSpdyGet(NULL, 0, true, 1, LOWEST));
|
| @@ -3469,8 +3462,6 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, DecompressFailureOnSynReply) {
|
| TransactionHelperResult out = helper.output();
|
| EXPECT_EQ(ERR_SPDY_PROTOCOL_ERROR, out.rv);
|
| data->Reset();
|
| -
|
| - EnableCompression(false);
|
| }
|
|
|
| // Test that the NetLog contains good data for a simple GET request.
|
|
|