Chromium Code Reviews| Index: net/base/upload_data_stream.h |
| =================================================================== |
| --- net/base/upload_data_stream.h (revision 144839) |
| +++ net/base/upload_data_stream.h (working copy) |
| @@ -14,6 +14,10 @@ |
| class FileStream; |
| class IOBuffer; |
| +class SpdyHttpStreamSpdy2Test; |
| +class SpdyHttpStreamSpdy3Test; |
| +class SpdyNetworkTransactionSpdy2Test; |
| +class SpdyNetworkTransactionSpdy3Test; |
| class NET_EXPORT UploadDataStream { |
| public: |
| @@ -65,10 +69,22 @@ |
| // Returns true if the upload data in the stream is entirely in memory. |
| bool IsInMemory() const; |
| - // This method is provided only to be used by unit tests. |
| + private: |
| + friend class SpdyHttpStreamSpdy2Test; |
| + friend class SpdyHttpStreamSpdy3Test; |
| + friend class SpdyNetworkTransactionSpdy2Test; |
| + friend class SpdyNetworkTransactionSpdy3Test; |
| + FRIEND_TEST_ALL_PREFIXES(SpdyHttpStreamSpdy2Test, SendChunkedPost); |
| + FRIEND_TEST_ALL_PREFIXES(SpdyHttpStreamSpdy2Test, DelayedSendChunkedPost); |
| + FRIEND_TEST_ALL_PREFIXES(SpdyHttpStreamSpdy3Test, SendChunkedPost); |
| + FRIEND_TEST_ALL_PREFIXES(SpdyHttpStreamSpdy3Test, DelayedSendChunkedPost); |
| + FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test, ChunkedPost); |
| + FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test, ChunkedPost); |
|
Ryan Sleevi
2012/07/06 23:15:49
Sorry, what I was suggesting was an either/or.
ei
ramant (doing other things)
2012/07/07 04:47:05
Done. Thanks much for your detailed comments.
|
| + |
| + // These methods are provided only to be used by unit tests. |
| + static bool merge_chunks() { return merge_chunks_; } |
| static void set_merge_chunks(bool merge) { merge_chunks_ = merge; } |
| - private: |
| scoped_refptr<UploadData> upload_data_; |
| // Index of the current upload element (i.e. the element currently being |