summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/socket/socket_test_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h
index 96c5ea7..29f4d67 100644
--- a/net/socket/socket_test_util.h
+++ b/net/socket/socket_test_util.h
@@ -49,6 +49,9 @@ struct MockConnect {
};
struct MockRead {
+ // Default
+ MockRead() : async(false), result(0), data(NULL), data_len(0) {};
+
// Read failure (no data).
MockRead(bool async, int result) : async(async) , result(result), data(NULL),
data_len(0) { }