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

Unified Diff: net/base/upload_data_stream_unittest.cc

Issue 6134003: Prototype of chunked transfer encoded POST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 11 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
Index: net/base/upload_data_stream_unittest.cc
diff --git a/net/base/upload_data_stream_unittest.cc b/net/base/upload_data_stream_unittest.cc
index 8a21ad69cd74463cd3b840a051462429df80e4cf..780bd23a1f56068829f6c29bd085a8fc6f11b295 100644
--- a/net/base/upload_data_stream_unittest.cc
+++ b/net/base/upload_data_stream_unittest.cc
@@ -50,7 +50,7 @@ TEST_F(UploadDataStreamTest, ConsumeAll) {
UploadDataStream::Create(upload_data_, NULL));
ASSERT_TRUE(stream.get());
while (!stream->eof()) {
- stream->DidConsume(stream->buf_len());
+ stream->MarkConsumedAndFillBuffer(stream->buf_len());
}
}
@@ -76,7 +76,7 @@ TEST_F(UploadDataStreamTest, FileSmallerThanLength) {
uint64 read_counter = 0;
while (!stream->eof()) {
read_counter += stream->buf_len();
- stream->DidConsume(stream->buf_len());
+ stream->MarkConsumedAndFillBuffer(stream->buf_len());
}
// UpdateDataStream will pad out the file with 0 bytes so that the HTTP
// transaction doesn't hang. Therefore we expected the full size.

Powered by Google App Engine
This is Rietveld 408576698