summaryrefslogtreecommitdiffstats
path: root/net/base/upload_bytes_element_reader_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* net: Allow calling UploadDataStream::Init() multiple times for reset purposehashimoto@chromium.org2012-11-021-0/+22
| | | | | | | | | | | | There should be a way to reset UploadDataStream for reusing the stream again and again. BUG=156574 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/11304003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165680 0039d316-1c4b-4281-b951-d872f2087c98
* net: Make UploadDataStream::Read() asynchronoushashimoto@chromium.org2012-10-171-4/+8
| | | | | | | | | | | | | | Rename existing Read() to ReadSync() Change type of |buf| from char* to scoped_refptr<IOBuffer> so that async operation is always performed safely Add an asynchronous implementation, Read() The newly added Read() is not used yet, all users still use the old version ReadSync() BUG=72001 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10910268 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162343 0039d316-1c4b-4281-b951-d872f2087c98
* net: Move data reading functionalities from UploadElement to UploadElementReaderhashimoto@chromium.org2012-09-111-0/+61
Add a new interface net::UploadElementReader and its implementations for bytes and file. Rewrite UploadDataStream using UploadElementReader. UploadElement::SetContentLength is replaced with UploadFileElementReader::ScopedOverridingContentLengthForTests. HttpNetworkTransactionSpdy(2|3)Test.UnreadableUploadFileAfterAuthRestart is bit modified since a new FileStream is created every time when UploadDataStream is initialized. BUG=145329 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10868064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156113 0039d316-1c4b-4281-b951-d872f2087c98