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

Unified Diff: net/http/http_stream_factory_impl_unittest.cc

Issue 9419032: Modify the MockConnect constructor to take an enum of ASYNC or SYNC, instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix Test Break 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
Index: net/http/http_stream_factory_impl_unittest.cc
===================================================================
--- net/http/http_stream_factory_impl_unittest.cc (revision 122403)
+++ net/http/http_stream_factory_impl_unittest.cc (working copy)
@@ -424,12 +424,12 @@
// First connection attempt fails
StaticSocketDataProvider socket_data1;
- socket_data1.set_connect_data(MockConnect(true, ERR_ADDRESS_UNREACHABLE));
+ socket_data1.set_connect_data(MockConnect(ASYNC, ERR_ADDRESS_UNREACHABLE));
session_deps.socket_factory.AddSocketDataProvider(&socket_data1);
// Second connection attempt succeeds
StaticSocketDataProvider socket_data2;
- socket_data2.set_connect_data(MockConnect(true, OK));
+ socket_data2.set_connect_data(MockConnect(ASYNC, OK));
session_deps.socket_factory.AddSocketDataProvider(&socket_data2);
scoped_refptr<HttpNetworkSession> session(CreateSession(&session_deps));

Powered by Google App Engine
This is Rietveld 408576698