From 6371bf471df4ae89446c22b924909f09ad034fae Mon Sep 17 00:00:00 2001 From: "mbelshe@google.com" Date: Fri, 4 Dec 2009 05:13:12 +0000 Subject: 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 --- net/socket/socket_test_util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'net/socket/socket_test_util.h') 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_; -- cgit v1.1