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

Unified Diff: jingle/notifier/base/fake_ssl_client_socket_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: jingle/notifier/base/fake_ssl_client_socket_unittest.cc
===================================================================
--- jingle/notifier/base/fake_ssl_client_socket_unittest.cc (revision 122403)
+++ jingle/notifier/base/fake_ssl_client_socket_unittest.cc (working copy)
@@ -131,7 +131,8 @@
base::StringPiece ssl_server_hello =
FakeSSLClientSocket::GetSslServerHello();
- net::MockConnect mock_connect(async, net::OK);
+ net::MockConnect mock_connect(async ? net::ASYNC : net::SYNCHRONOUS,
akalin 2012/02/17 19:46:49 ideally you'd propagate the enum up, but that's no
Ryan Hamilton 2012/02/17 19:58:09 Yup, I intend to do that in a subsequent CL, comin
+ net::OK);
std::vector<net::MockRead> reads;
std::vector<net::MockWrite> writes;
static const char kReadTestData[] = "read test data";
@@ -192,7 +193,8 @@
base::StringPiece ssl_server_hello =
FakeSSLClientSocket::GetSslServerHello();
- net::MockConnect mock_connect(async, net::OK);
+ net::MockConnect mock_connect(async ? net::ASYNC : net::SYNCHRONOUS,
+ net::OK);
std::vector<net::MockRead> reads;
std::vector<net::MockWrite> writes;
const size_t kChunkSize = 1;

Powered by Google App Engine
This is Rietveld 408576698