diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 16:56:19 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 16:56:19 +0000 |
commit | 7ff48ca7c36e03a70d42838b57d7576fd6866fd3 (patch) | |
tree | a4094090054ef5954b381625c6116b5cf9ad49d1 /base/message_pump_glib_unittest.cc | |
parent | 3eb2899b90415acb389db29933f1bfe249f6355d (diff) | |
download | chromium_src-7ff48ca7c36e03a70d42838b57d7576fd6866fd3.zip chromium_src-7ff48ca7c36e03a70d42838b57d7576fd6866fd3.tar.gz chromium_src-7ff48ca7c36e03a70d42838b57d7576fd6866fd3.tar.bz2 |
base: Convert the remaining uses of MessageLoop::RunUntilIdle to RunLoop variant.
The former method is deprecated and actually it is just using RunLoop internally.
The later is the cannonical method and should be used instead.
BUG=131220
TEST=base_unittests
R=darin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/12226007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180991 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_glib_unittest.cc')
-rw-r--r-- | base/message_pump_glib_unittest.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/message_pump_glib_unittest.cc b/base/message_pump_glib_unittest.cc index 9ef3822..be11c2f 100644 --- a/base/message_pump_glib_unittest.cc +++ b/base/message_pump_glib_unittest.cc @@ -15,6 +15,7 @@ #include "base/callback.h" #include "base/memory/ref_counted.h" #include "base/message_loop.h" +#include "base/run_loop.h" #include "base/threading/thread.h" #include "testing/gtest/include/gtest/gtest.h" @@ -22,6 +23,7 @@ #include <gtk/gtk.h> #endif +namespace base { namespace { // This class injects dummy "events" into the GLib loop. When "handled" these @@ -189,7 +191,7 @@ TEST_F(MessagePumpGLibTest, TestQuit) { // Checks that Quit works and that the basic infrastructure is working. // Quit from a task - loop()->RunUntilIdle(); + RunLoop().RunUntilIdle(); EXPECT_EQ(0, injector()->processed_events()); injector()->Reset(); @@ -574,3 +576,5 @@ TEST_F(MessagePumpGLibTest, TestGtkLoop) { base::Bind(&TestGtkLoopInternal, base::Unretained(injector()))); loop()->Run(); } + +} // namespace base |