summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-24 19:33:54 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-24 19:33:54 +0000
commitd4edbe5e406c5773d66d65214b963ed474b34cf4 (patch)
tree663742cc90367a6caeeaf446aedef1d03ce256d5 /net
parentb4b408bb319b418c005288275bc0536d748962de (diff)
downloadchromium_src-d4edbe5e406c5773d66d65214b963ed474b34cf4.zip
chromium_src-d4edbe5e406c5773d66d65214b963ed474b34cf4.tar.gz
chromium_src-d4edbe5e406c5773d66d65214b963ed474b34cf4.tar.bz2
Add a default constructor to the MockRead struct so
that we can do things like dynamically create an array of them. BUG=none TEST=none Review URL: http://codereview.chromium.org/434039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32951 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-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) { }