Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1771)

Unified Diff: blimp/client/core/compositor/delegated_output_surface_unittest.cc

Issue 2316493005: Remove calls to deprecated MessageLoop methods in blimp. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | blimp/client/core/contents/blimp_contents_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/compositor/delegated_output_surface_unittest.cc
diff --git a/blimp/client/core/compositor/delegated_output_surface_unittest.cc b/blimp/client/core/compositor/delegated_output_surface_unittest.cc
index 8ae5cd83812febb16efe6cd0630cc1cc47e74faa..7a33121b372c1ef29ac45964099a1414edb2ec2c 100644
--- a/blimp/client/core/compositor/delegated_output_surface_unittest.cc
+++ b/blimp/client/core/compositor/delegated_output_surface_unittest.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/memory/ptr_util.h"
+#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread_task_runner_handle.h"
#include "cc/output/compositor_frame.h"
@@ -122,7 +123,7 @@ class DelegatedOutputSurfaceTest : public testing::Test {
// Run all tasks so the registration of the BlimpOutputSurface on the main
// thread completes.
- base::MessageLoop::current()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void DoSwapBuffers() {
@@ -154,7 +155,7 @@ class DelegatedOutputSurfaceTest : public testing::Test {
// Run all tasks so the unregistration of the BlimpOutputSurface on the main
// thread completes.
- base::MessageLoop::current()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void InitOnCompositorThread(base::WaitableEvent* event) {
@@ -168,7 +169,7 @@ class DelegatedOutputSurfaceTest : public testing::Test {
}
void ShutdownOnCompositorThread(base::WaitableEvent* event) {
- base::MessageLoop::current()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
if (bound_) {
output_surface_->DetachFromClient();
bound_ = false;
@@ -204,7 +205,7 @@ TEST_F(DelegatedOutputSurfaceTest, BindSucceedsSwapBuffers) {
// Run all tasks so the swap buffer calls to the BlimpOutputSurface on the
// main thread complete.
- base::MessageLoop::current()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(3, blimp_output_surface_client_->swap_count());
EndTest();
« no previous file with comments | « no previous file | blimp/client/core/contents/blimp_contents_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698