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

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

Issue 2315443004: Remove calls to deprecated MessageLoop methods in chrome. (Closed)
Patch Set: remove unused include 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/webrtc/desktop_media_list_ash_unittest.cc
diff --git a/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc b/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc
index d7972a649d79736d92b136aa5013aa76550dd1e0..fd11ac76447aad67d3adb576ab1ec6cd56da9e0e 100644
--- a/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc
+++ b/chrome/browser/media/webrtc/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();
}
« no previous file with comments | « chrome/browser/history/android/sqlite_cursor_unittest.cc ('k') | chrome/browser/metrics/chromeos_metrics_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698