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

Unified Diff: ui/gfx/animation/animation_container_unittest.cc

Issue 2086093003: Remove calls to deprecated MessageLoop methods in ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « ui/events/platform/platform_event_source_unittest.cc ('k') | ui/gfx/animation/animation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/animation_container_unittest.cc
diff --git a/ui/gfx/animation/animation_container_unittest.cc b/ui/gfx/animation/animation_container_unittest.cc
index b1bb7911e6a5a751d6e09aa191d1fe6ee4cf0d8a..ae29d8ad2cfba080f1cd52d33cb23b6ac86ee7d7 100644
--- a/ui/gfx/animation/animation_container_unittest.cc
+++ b/ui/gfx/animation/animation_container_unittest.cc
@@ -7,6 +7,7 @@
#include <memory>
#include "base/macros.h"
+#include "base/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/animation/animation_container_observer.h"
#include "ui/gfx/animation/linear_animation.h"
@@ -95,7 +96,7 @@ TEST_F(AnimationContainerTest, Multi) {
EXPECT_TRUE(container->is_running());
// Run the message loop the delegate quits the message loop when notified.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
// Both timers should have finished.
EXPECT_TRUE(delegate1.finished());
@@ -120,7 +121,7 @@ TEST_F(AnimationContainerTest, Observer) {
EXPECT_TRUE(container->is_running());
// Run the message loop. The delegate quits the message loop when notified.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_EQ(1, observer.progressed_count());
« no previous file with comments | « ui/events/platform/platform_event_source_unittest.cc ('k') | ui/gfx/animation/animation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698