diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-07 15:13:24 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-07 15:13:24 +0000 |
commit | 352e694e794bf1bf3b4a868487f4708198e9a059 (patch) | |
tree | a5122c9792275b00fca3523f6856dae8ee6c9d31 /gpu | |
parent | dc98bb2643a9df4a6ca0f4a2b10ca3f30e071a6f (diff) | |
download | chromium_src-352e694e794bf1bf3b4a868487f4708198e9a059.zip chromium_src-352e694e794bf1bf3b4a868487f4708198e9a059.tar.gz chromium_src-352e694e794bf1bf3b4a868487f4708198e9a059.tar.bz2 |
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
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() { |