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

Side by Side Diff: net/spdy/spdy_framer.h

Issue 3033012: Fixed memory leak in SpdyHttpStreamTest. Removed suppressions. (Closed)
Patch Set: merge with trunk Created 10 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/spdy/spdy_http_stream_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SPDY_SPDY_FRAMER_H_ 5 #ifndef NET_SPDY_SPDY_FRAMER_H_
6 #define NET_SPDY_SPDY_FRAMER_H_ 6 #define NET_SPDY_SPDY_FRAMER_H_
7 7
8 #ifdef _WIN32 8 #ifdef _WIN32
9 #include <winsock2.h> 9 #include <winsock2.h>
10 #else 10 #else
(...skipping 11 matching lines...) Expand all
22 #include "testing/gtest/include/gtest/gtest_prod.h" 22 #include "testing/gtest/include/gtest/gtest_prod.h"
23 23
24 typedef struct z_stream_s z_stream; // Forward declaration for zlib. 24 typedef struct z_stream_s z_stream; // Forward declaration for zlib.
25 25
26 namespace net { 26 namespace net {
27 class HttpNetworkLayer; 27 class HttpNetworkLayer;
28 class HttpNetworkTransactionTest; 28 class HttpNetworkTransactionTest;
29 class SpdyNetworkTransactionTest; 29 class SpdyNetworkTransactionTest;
30 class SpdySessionTest; 30 class SpdySessionTest;
31 class SpdyStreamTest; 31 class SpdyStreamTest;
32 class SpdyHttpStreamTest;
32 } 33 }
33 34
34 namespace spdy { 35 namespace spdy {
35 36
36 class SpdyFramer; 37 class SpdyFramer;
37 class SpdyFramerTest; 38 class SpdyFramerTest;
38 39
39 namespace test { 40 namespace test {
40 class TestSpdyVisitor; 41 class TestSpdyVisitor;
41 void FramerSetEnableCompressionHelper(SpdyFramer* framer, bool compress); 42 void FramerSetEnableCompressionHelper(SpdyFramer* framer, bool compress);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 static const char kDictionary[]; 243 static const char kDictionary[];
243 static const int kDictionarySize; 244 static const int kDictionarySize;
244 245
245 protected: 246 protected:
246 FRIEND_TEST(SpdyFramerTest, DataCompression); 247 FRIEND_TEST(SpdyFramerTest, DataCompression);
247 FRIEND_TEST(SpdyFramerTest, UnclosedStreamDataCompressors); 248 FRIEND_TEST(SpdyFramerTest, UnclosedStreamDataCompressors);
248 friend class net::SpdyNetworkTransactionTest; 249 friend class net::SpdyNetworkTransactionTest;
249 friend class net::HttpNetworkTransactionTest; 250 friend class net::HttpNetworkTransactionTest;
250 friend class net::HttpNetworkLayer; // This is temporary for the server. 251 friend class net::HttpNetworkLayer; // This is temporary for the server.
251 friend class net::SpdySessionTest; 252 friend class net::SpdySessionTest;
253 friend class net::SpdyHttpStreamTest;
252 friend class net::SpdyStreamTest; 254 friend class net::SpdyStreamTest;
253 friend class test::TestSpdyVisitor; 255 friend class test::TestSpdyVisitor;
254 friend void test::FramerSetEnableCompressionHelper(SpdyFramer* framer, 256 friend void test::FramerSetEnableCompressionHelper(SpdyFramer* framer,
255 bool compress); 257 bool compress);
256 258
257 // For ease of testing we can tweak compression on/off. 259 // For ease of testing we can tweak compression on/off.
258 void set_enable_compression(bool value); 260 void set_enable_compression(bool value);
259 static void set_enable_compression_default(bool value); 261 static void set_enable_compression_default(bool value);
260 262
261 private: 263 private:
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 CompressorMap stream_decompressors_; 325 CompressorMap stream_decompressors_;
324 326
325 SpdyFramerVisitorInterface* visitor_; 327 SpdyFramerVisitorInterface* visitor_;
326 328
327 static bool compression_default_; 329 static bool compression_default_;
328 }; 330 };
329 331
330 } // namespace spdy 332 } // namespace spdy
331 333
332 #endif // NET_SPDY_SPDY_FRAMER_H_ 334 #endif // NET_SPDY_SPDY_FRAMER_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_http_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698