diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-04 05:13:12 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-04 05:13:12 +0000 |
commit | 6371bf471df4ae89446c22b924909f09ad034fae (patch) | |
tree | 4df5ca128ebd401fe297cd1980ed6e5ed5308d72 /net/socket/socket_test_util.h | |
parent | dd1e41a83fc1e11227caffcde580122588c203d2 (diff) | |
download | chromium_src-6371bf471df4ae89446c22b924909f09ad034fae.zip chromium_src-6371bf471df4ae89446c22b924909f09ad034fae.tar.gz chromium_src-6371bf471df4ae89446c22b924909f09ad034fae.tar.bz2 |
Fix bug where FLIP sessions can crash if the connect fails.
Update the mocksocket so that we can test connection statuses.
Verified that the test case crashes without the flip_session.cc fix.
BUG=none
TEST=FlipNetworkTransaction.ConnectFailure
Review URL: http://codereview.chromium.org/462023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33792 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/socket_test_util.h')
-rw-r--r-- | net/socket/socket_test_util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/socket/socket_test_util.h b/net/socket/socket_test_util.h index 5f17f71..22b1c80 100644 --- a/net/socket/socket_test_util.h +++ b/net/socket/socket_test_util.h @@ -108,6 +108,7 @@ class SocketDataProvider { void set_socket(MockClientSocket* socket) { socket_ = socket; } MockConnect connect_data() const { return connect_; } + void set_connect_data(const MockConnect& connect) { connect_ = connect; } private: MockConnect connect_; |