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

Unified Diff: net/socket/socket_test_util.h

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/socket/socket_test_util.h
===================================================================
--- net/socket/socket_test_util.h (revision 122403)
+++ net/socket/socket_test_util.h (working copy)
@@ -53,10 +53,15 @@
class SSLHostInfo;
class StreamSocket;
+enum ConnectMode {
+ ASYNC,
+ SYNCHRONOUS
+};
+
struct MockConnect {
// Asynchronous connection success.
MockConnect() : async(true), result(OK) { }
- MockConnect(bool a, int r) : async(a), result(r) { }
+ MockConnect(ConnectMode m, int r) : async(m == ASYNC), result(r) { }
bool async;
int result;

Powered by Google App Engine
This is Rietveld 408576698