diff options
author | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 20:29:28 +0000 |
---|---|---|
committer | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 20:29:28 +0000 |
commit | 92e81f2d93d8b7c6a29ebe53eeac172a11c744db (patch) | |
tree | cb30e427f0a88fce2afa8838e90990f4eb5bf9dc /chrome/common/service_process_util_unittest.cc | |
parent | 7b398483f56fcbe4a84dc3eee6f80d1ec96c925a (diff) | |
download | chromium_src-92e81f2d93d8b7c6a29ebe53eeac172a11c744db.zip chromium_src-92e81f2d93d8b7c6a29ebe53eeac172a11c744db.tar.gz chromium_src-92e81f2d93d8b7c6a29ebe53eeac172a11c744db.tar.bz2 |
Make changes sanjeev suggested
BUG=NONE
TEST=BUILD
Review URL: http://codereview.chromium.org/6286082
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/service_process_util_unittest.cc')
-rw-r--r-- | chrome/common/service_process_util_unittest.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/common/service_process_util_unittest.cc b/chrome/common/service_process_util_unittest.cc index b65812d..ad6b257 100644 --- a/chrome/common/service_process_util_unittest.cc +++ b/chrome/common/service_process_util_unittest.cc @@ -39,7 +39,9 @@ class ServiceProcessStateTest : public base::MultiProcessTest { ServiceProcessStateTest(); ~ServiceProcessStateTest(); virtual void SetUp(); - MessageLoop* IOMessageLoop() { return io_thread_.message_loop(); } + base::MessageLoopProxy* IOMessageLoopProxy() { + return io_thread_.message_loop_proxy(); + } void LaunchAndWait(const std::string& name); private: @@ -78,7 +80,7 @@ TEST_F(ServiceProcessStateTest, ReadyState) { ASSERT_FALSE(CheckServiceProcessReady()); ServiceProcessState* state = ServiceProcessState::GetInstance(); ASSERT_TRUE(state->Initialize()); - ASSERT_TRUE(state->SignalReady(IOMessageLoop(), NULL)); + ASSERT_TRUE(state->SignalReady(IOMessageLoopProxy(), NULL)); LaunchAndWait("ServiceProcessStateTestReadyTrue"); state->SignalStopped(); LaunchAndWait("ServiceProcessStateTestReadyFalse"); @@ -143,7 +145,7 @@ MULTIPROCESS_TEST_MAIN(ServiceProcessStateTestShutdown) { EXPECT_TRUE(io_thread_.StartWithOptions(options)); ServiceProcessState* state = ServiceProcessState::GetInstance(); EXPECT_TRUE(state->Initialize()); - EXPECT_TRUE(state->SignalReady(io_thread_.message_loop(), + EXPECT_TRUE(state->SignalReady(io_thread_.message_loop_proxy(), NewRunnableFunction(&ShutdownTask, MessageLoop::current()))); message_loop.PostDelayedTask(FROM_HERE, |