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

Unified Diff: chrome/browser/media/desktop_media_list_ash_unittest.cc

Issue 2315443004: Remove calls to deprecated MessageLoop methods in chrome. (Closed)
Patch Set: fix build error 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
Index: chrome/browser/media/desktop_media_list_ash_unittest.cc
diff --git a/chrome/browser/media/desktop_media_list_ash_unittest.cc b/chrome/browser/media/desktop_media_list_ash_unittest.cc
index 07c9bb927bc85e7b64c65f700ed03277d4676c7c..75ac099fa2dcb055cd2f7f6901f3de3f98ea768c 100644
--- a/chrome/browser/media/desktop_media_list_ash_unittest.cc
+++ b/chrome/browser/media/desktop_media_list_ash_unittest.cc
@@ -8,6 +8,7 @@
#include "base/location.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
@@ -64,7 +65,7 @@ TEST_F(DesktopMediaListAshTest, Screen) {
.WillOnce(QuitMessageLoop())
.WillRepeatedly(DoDefault());
list_->StartUpdating(&observer_);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(DesktopMediaListAshTest, OneWindow) {
@@ -83,9 +84,9 @@ TEST_F(DesktopMediaListAshTest, OneWindow) {
.WillOnce(QuitMessageLoop());
list_->StartUpdating(&observer_);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
window.reset();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(DesktopMediaListAshTest, ScreenOnly) {
@@ -99,7 +100,7 @@ TEST_F(DesktopMediaListAshTest, ScreenOnly) {
.WillRepeatedly(DoDefault());
list_->StartUpdating(&observer_);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
// Times out on Win DrMemory bot. http://crbug.com/493187
@@ -122,7 +123,7 @@ TEST_F(DesktopMediaListAshTest, MAYBE_WindowOnly) {
.WillOnce(QuitMessageLoop());
list_->StartUpdating(&observer_);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
window.reset();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}

Powered by Google App Engine
This is Rietveld 408576698