From a512f598dca5030e9c02c497b36839cbdcd6e0cb Mon Sep 17 00:00:00 2001 From: "willchan@chromium.org" Date: Tue, 18 Aug 2009 16:01:06 +0000 Subject: Change ClientSocketHandle to take the pool as a parameter to Init() rather than the constructor. The purpose of this change is to allow ClientSocketHandle to be able to accept ClientSocketPools of different types, since we will want to pass a TCPClientSocketPool or an SSLClientSocketPool or whatever to it. BUG=http://crbug.com/13289 Review URL: http://codereview.chromium.org/171003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23629 0039d316-1c4b-4281-b951-d872f2087c98 --- net/socket/socket_test_util.cc | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'net/socket/socket_test_util.cc') diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc index 30927ad..b1af59f 100644 --- a/net/socket/socket_test_util.cc +++ b/net/socket/socket_test_util.cc @@ -329,21 +329,6 @@ void ClientSocketPoolTest::TearDown() { MessageLoop::current()->RunAllPending(); } -int ClientSocketPoolTest::StartRequestUsingPool(ClientSocketPool* socket_pool, - const std::string& group_name, - int priority) { - DCHECK(socket_pool); - TestSocketRequest* request = new TestSocketRequest(socket_pool, - &request_order_, - &completion_count_); - requests_.push_back(request); - int rv = request->handle()->Init(group_name, ignored_request_info_, - priority, request, NULL); - if (rv != ERR_IO_PENDING) - request_order_.push_back(request); - return rv; -} - int ClientSocketPoolTest::GetOrderOfRequest(size_t index) { index--; if (index < 0 || index >= requests_.size()) -- cgit v1.1