| 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());
|
|
|
|
|