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

Unified Diff: base/memory/memory_pressure_listener_unittest.cc

Issue 2132593002: Remove remaining calls to deprecated MessageLoop methods on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: h264_vt_encoder_unittest.cc Created 4 years, 5 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
« no previous file with comments | « base/ios/weak_nsobject_unittest.mm ('k') | base/message_loop/message_loop_task_runner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/memory_pressure_listener_unittest.cc
diff --git a/base/memory/memory_pressure_listener_unittest.cc b/base/memory/memory_pressure_listener_unittest.cc
index acff1fd925c16fc2e72a71b38cefc45ac809a2f9..87d5f4cbbe9c6bd8ece12e0f0605196a91413447 100644
--- a/base/memory/memory_pressure_listener_unittest.cc
+++ b/base/memory/memory_pressure_listener_unittest.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace base {
@@ -31,7 +32,7 @@ class MemoryPressureListenerTest : public testing::Test {
MemoryPressureLevel level) {
EXPECT_CALL(*this, OnMemoryPressure(level)).Times(1);
notification_function(level);
- message_loop_->RunUntilIdle();
+ RunLoop().RunUntilIdle();
}
void ExpectNoNotification(
@@ -39,7 +40,7 @@ class MemoryPressureListenerTest : public testing::Test {
MemoryPressureLevel level) {
EXPECT_CALL(*this, OnMemoryPressure(testing::_)).Times(0);
notification_function(level);
- message_loop_->RunUntilIdle();
+ RunLoop().RunUntilIdle();
}
private:
« no previous file with comments | « base/ios/weak_nsobject_unittest.mm ('k') | base/message_loop/message_loop_task_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698