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

Unified Diff: ash/common/system/chromeos/power/power_status_unittest.cc

Issue 2314233002: Remove calls to deprecated MessageLoop methods in ash. (Closed)
Patch Set: 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: ash/common/system/chromeos/power/power_status_unittest.cc
diff --git a/ash/common/system/chromeos/power/power_status_unittest.cc b/ash/common/system/chromeos/power/power_status_unittest.cc
index 8fa684da425e209679cec53368f55ce25d47f606..445f85437c2872c7e18ea9b96cd5bc4a0cfa84c3 100644
--- a/ash/common/system/chromeos/power/power_status_unittest.cc
+++ b/ash/common/system/chromeos/power/power_status_unittest.cc
@@ -9,6 +9,7 @@
#include "ash/common/material_design/material_design_controller.h"
#include "ash/common/test/material_design_controller_test_api.h"
#include "base/message_loop/message_loop.h"
sky 2016/09/06 21:51:52 If you can, remove this include.
fdoray 2016/09/07 13:00:10 Still used at line 66.
+#include "base/run_loop.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
@@ -87,13 +88,13 @@ TEST_P(PowerStatusTest, InitializeAndUpdate) {
// PowerManagerClientStubImpl, which responds to power status update
// requests, pretends there is a battery present, and generates some valid
// power supply status data.
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(1, test_observer_->power_changed_count());
// Test RequestUpdate, test_obsever_ should be notified for power suuply
// status change.
power_status_->RequestStatusUpdate();
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(2, test_observer_->power_changed_count());
}
« no previous file with comments | « no previous file | ash/drag_drop/drag_drop_interactive_uitest.cc » ('j') | ash/drag_drop/drag_drop_interactive_uitest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698