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

Unified Diff: net/base/upload_data_stream.h

Issue 10689034: SPDY - chunked upload - speech recognition doesn't work with SPDY/3 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/spdy/spdy_http_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | net/spdy/spdy_http_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698