diff options
Diffstat (limited to 'gpu')
5 files changed, 8 insertions, 8 deletions
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() { |