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

Unified Diff: net/base/upload_data_stream_unittest.cc

Issue 9321003: net: Make UploadData::GetContentLength() asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 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 ebf9f47217c1975ab66cbc7b7985267411ef2a21..86fcb63b404b812428aa3e1f76dd0827fb001c07 100644
--- a/net/base/upload_data_stream_unittest.cc
+++ b/net/base/upload_data_stream_unittest.cc
@@ -7,9 +7,11 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/bind.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/memory/scoped_ptr.h"
+#include "base/message_loop.h"
#include "base/time.h"
#include "net/base/net_errors.h"
#include "net/base/upload_data.h"
@@ -73,7 +75,7 @@ TEST_F(UploadDataStreamTest, FileSmallerThanLength) {
element.SetContentLength(kFakeSize);
elements.push_back(element);
upload_data_->SetElements(elements);
- EXPECT_EQ(kFakeSize, upload_data_->GetContentLength());
+ EXPECT_EQ(kFakeSize, upload_data_->GetContentLengthSyncForTesting());
scoped_ptr<UploadDataStream> stream(new UploadDataStream(upload_data_));
ASSERT_EQ(OK, stream->Init());

Powered by Google App Engine
This is Rietveld 408576698