From 352e694e794bf1bf3b4a868487f4708198e9a059 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Wed, 7 Nov 2012 15:13:24 +0000 Subject: gpu: Update calls froms RunAllPending() to RunUntilIdle(). BUG=131220 TBR=piman@chromium.org Review URL: https://chromiumcodereview.appspot.com/11377022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166428 0039d316-1c4b-4281-b951-d872f2087c98 --- gpu/command_buffer/client/cmd_buffer_helper_test.cc | 2 +- gpu/command_buffer/client/fenced_allocator_test.cc | 4 ++-- gpu/command_buffer/client/mapped_memory_unittest.cc | 4 ++-- gpu/command_buffer/client/ring_buffer_test.cc | 4 ++-- gpu/command_buffer/service/gpu_scheduler_unittest.cc | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'gpu') diff --git a/gpu/command_buffer/client/cmd_buffer_helper_test.cc b/gpu/command_buffer/client/cmd_buffer_helper_test.cc index 927f4a2..8e30440 100644 --- a/gpu/command_buffer/client/cmd_buffer_helper_test.cc +++ b/gpu/command_buffer/client/cmd_buffer_helper_test.cc @@ -96,7 +96,7 @@ class CommandBufferHelperTest : public testing::Test { virtual void TearDown() { // If the GpuScheduler posts any tasks, this forces them to run. - MessageLoop::current()->RunAllPending(); + MessageLoop::current()->RunUntilIdle(); } const CommandParser* GetParser() const { diff --git a/gpu/command_buffer/client/fenced_allocator_test.cc b/gpu/command_buffer/client/fenced_allocator_test.cc index d34e158..381237b 100644 --- a/gpu/command_buffer/client/fenced_allocator_test.cc +++ b/gpu/command_buffer/client/fenced_allocator_test.cc @@ -99,7 +99,7 @@ class FencedAllocatorTest : public BaseFencedAllocatorTest { virtual void TearDown() { // If the GpuScheduler posts any tasks, this forces them to run. - MessageLoop::current()->RunAllPending(); + MessageLoop::current()->RunUntilIdle(); EXPECT_TRUE(allocator_->CheckConsistency()); @@ -401,7 +401,7 @@ class FencedAllocatorWrapperTest : public BaseFencedAllocatorTest { virtual void TearDown() { // If the GpuScheduler posts any tasks, this forces them to run. - MessageLoop::current()->RunAllPending(); + MessageLoop::current()->RunUntilIdle(); EXPECT_TRUE(allocator_->CheckConsistency()); diff --git a/gpu/command_buffer/client/mapped_memory_unittest.cc b/gpu/command_buffer/client/mapped_memory_unittest.cc index 391d3b4..964d763 100644 --- a/gpu/command_buffer/client/mapped_memory_unittest.cc +++ b/gpu/command_buffer/client/mapped_memory_unittest.cc @@ -102,7 +102,7 @@ class MemoryChunkTest : public MappedMemoryTestBase { virtual void TearDown() { // If the GpuScheduler posts any tasks, this forces them to run. - MessageLoop::current()->RunAllPending(); + MessageLoop::current()->RunUntilIdle(); MappedMemoryTestBase::TearDown(); } @@ -153,7 +153,7 @@ class MappedMemoryManagerTest : public MappedMemoryTestBase { virtual void TearDown() { // If the GpuScheduler posts any tasks, this forces them to run. - MessageLoop::current()->RunAllPending(); + MessageLoop::current()->RunUntilIdle(); manager_.reset(); MappedMemoryTestBase::TearDown(); } diff --git a/gpu/command_buffer/client/ring_buffer_test.cc b/gpu/command_buffer/client/ring_buffer_test.cc index 04e4e30..55f4c0e 100644 --- a/gpu/command_buffer/client/ring_buffer_test.cc +++ b/gpu/command_buffer/client/ring_buffer_test.cc @@ -125,7 +125,7 @@ class RingBufferTest : public BaseRingBufferTest { virtual void TearDown() { // If the GpuScheduler posts any tasks, this forces them to run. - MessageLoop::current()->RunAllPending(); + MessageLoop::current()->RunUntilIdle(); BaseRingBufferTest::TearDown(); } @@ -221,7 +221,7 @@ class RingBufferWrapperTest : public BaseRingBufferTest { virtual void TearDown() { // If the GpuScheduler posts any tasks, this forces them to run. - MessageLoop::current()->RunAllPending(); + MessageLoop::current()->RunUntilIdle(); BaseRingBufferTest::TearDown(); } diff --git a/gpu/command_buffer/service/gpu_scheduler_unittest.cc b/gpu/command_buffer/service/gpu_scheduler_unittest.cc index a8e3021..fb1c754 100644 --- a/gpu/command_buffer/service/gpu_scheduler_unittest.cc +++ b/gpu/command_buffer/service/gpu_scheduler_unittest.cc @@ -60,7 +60,7 @@ class GpuSchedulerTest : public testing::Test { virtual void TearDown() { // Ensure that any unexpected tasks posted by the GPU scheduler are executed // in order to fail the test. - MessageLoop::current()->RunAllPending(); + MessageLoop::current()->RunUntilIdle(); } error::Error GetError() { -- cgit v1.1