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

Unified Diff: net/http/http_network_transaction_unittest.cc

Issue 9321003: net: Make UploadData::GetContentLength() asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 10 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 | « net/base/upload_data_unittest.cc ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction_unittest.cc
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc
index 75b6a988d465d11d2ad90549c0d3fae9e9fb0210..8457a1d66ae55cad49c7f8fb05178c0749f2b2f6 100644
--- a/net/http/http_network_transaction_unittest.cc
+++ b/net/http/http_network_transaction_unittest.cc
@@ -6184,7 +6184,7 @@ TEST_F(HttpNetworkTransactionTest, UploadFileSmallerThanLength) {
element.SetContentLength(kFakeSize);
elements.push_back(element);
request.upload_data->SetElements(elements);
- EXPECT_EQ(kFakeSize, request.upload_data->GetContentLength());
+ EXPECT_EQ(kFakeSize, request.upload_data->GetContentLengthSync());
MockRead data_reads[] = {
MockRead("HTTP/1.0 200 OK\r\n\r\n"),
« no previous file with comments | « net/base/upload_data_unittest.cc ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698