summaryrefslogtreecommitdiffstats
path: root/net/socket/client_socket_pool_base_unittest.cc
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 00:12:46 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 00:12:46 +0000
commite6ec67b2fc4ee1ca203188cd74354401d706043e (patch)
treeff8cb5adb5bc499eb34ac82d30fafdd372cda765 /net/socket/client_socket_pool_base_unittest.cc
parent7faa5386330c0de8fbd5cde8e0daea2e810ec0a6 (diff)
downloadchromium_src-e6ec67b2fc4ee1ca203188cd74354401d706043e.zip
chromium_src-e6ec67b2fc4ee1ca203188cd74354401d706043e.tar.gz
chromium_src-e6ec67b2fc4ee1ca203188cd74354401d706043e.tar.bz2
TTF: Fix and enable disabled test: ClientSocketPoolBaseTest.LoadState
Test=Seems to run ok with modified message posting BUG=disabled test Review URL: http://codereview.chromium.org/2831006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49864 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/client_socket_pool_base_unittest.cc')
-rw-r--r--net/socket/client_socket_pool_base_unittest.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/socket/client_socket_pool_base_unittest.cc b/net/socket/client_socket_pool_base_unittest.cc
index f195d2d..3cd90d14 100644
--- a/net/socket/client_socket_pool_base_unittest.cc
+++ b/net/socket/client_socket_pool_base_unittest.cc
@@ -186,11 +186,10 @@ class TestConnectJob : public ConnectJob {
waiting_success_ = true;
return ERR_IO_PENDING;
case kMockAdvancingLoadStateJob:
- MessageLoop::current()->PostDelayedTask(
+ MessageLoop::current()->PostTask(
FROM_HERE,
method_factory_.NewRunnableMethod(
- &TestConnectJob::AdvanceLoadState, load_state_),
- 2);
+ &TestConnectJob::AdvanceLoadState, load_state_));
return ERR_IO_PENDING;
default:
NOTREACHED();
@@ -1472,7 +1471,7 @@ TEST_F(ClientSocketPoolBaseTest, PendingJobCompletionOrder) {
EXPECT_EQ(&req3, request_order_[2]);
}
-TEST_F(ClientSocketPoolBaseTest, DISABLED_LoadState) {
+TEST_F(ClientSocketPoolBaseTest, LoadState) {
CreatePool(kDefaultMaxSockets, kDefaultMaxSocketsPerGroup);
connect_job_factory_->set_job_type(
TestConnectJob::kMockAdvancingLoadStateJob);