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

Unified Diff: net/spdy/spdy_network_transaction_unittest.cc

Issue 9350060: net: Make UploadDataStream::Init() asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/spdy/spdy_http_stream_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_network_transaction_unittest.cc
diff --git a/net/spdy/spdy_network_transaction_unittest.cc b/net/spdy/spdy_network_transaction_unittest.cc
index 97e494d990491920ed3c5b281cc8e7627f7f18de..86f931595fe295049d6906293c9b4c2ed1f22cde 100644
--- a/net/spdy/spdy_network_transaction_unittest.cc
+++ b/net/spdy/spdy_network_transaction_unittest.cc
@@ -1692,7 +1692,7 @@ TEST_P(SpdyNetworkTransactionTest, EmptyPost) {
// It is the same as request.upload_data->GetContentLengthSync().
scoped_ptr<UploadDataStream> stream(
new UploadDataStream(request.upload_data));
- ASSERT_EQ(OK, stream->Init());
+ ASSERT_EQ(OK, stream->InitSync());
ASSERT_EQ(request.upload_data->GetContentLengthSync(),
stream->size());
@@ -1741,7 +1741,7 @@ TEST_P(SpdyNetworkTransactionTest, PostWithEarlySynReply) {
// It is the same as request.upload_data->GetContentLengthSync().
scoped_ptr<UploadDataStream> stream(
new UploadDataStream(request.upload_data));
- ASSERT_EQ(OK, stream->Init());
+ ASSERT_EQ(OK, stream->InitSync());
ASSERT_EQ(request.upload_data->GetContentLengthSync(),
stream->size());
scoped_ptr<spdy::SpdyFrame> stream_reply(ConstructSpdyPostSynReply(NULL, 0));
« no previous file with comments | « net/spdy/spdy_http_stream_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698