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

Unified Diff: blimp/client/core/contents/blimp_contents_impl_unittest.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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: blimp/client/core/contents/blimp_contents_impl_unittest.cc
diff --git a/blimp/client/core/contents/blimp_contents_impl_unittest.cc b/blimp/client/core/contents/blimp_contents_impl_unittest.cc
index 5ae6f818eafdf84f437f31e50575dad6739af172..0c2796d6cd3b46d9f9f3516c982b08e8269ec182 100644
--- a/blimp/client/core/contents/blimp_contents_impl_unittest.cc
+++ b/blimp/client/core/contents/blimp_contents_impl_unittest.cc
@@ -5,6 +5,7 @@
#include "blimp/client/core/contents/blimp_contents_impl.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "blimp/client/core/contents/fake_navigation_feature.h"
#include "blimp/client/core/contents/tab_control_feature.h"
#include "blimp/client/public/contents/blimp_contents_observer.h"
@@ -58,7 +59,7 @@ TEST(BlimpContentsImplTest, LoadURLAndNotifyObservers) {
EXPECT_CALL(observer2, OnNavigationStateChanged()).Times(2);
navigation_controller.LoadURL(GURL(kExampleURL));
- loop.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(kExampleURL, navigation_controller.GetURL().spec());
@@ -66,7 +67,7 @@ TEST(BlimpContentsImplTest, LoadURLAndNotifyObservers) {
blimp_contents.RemoveObserver(&observer1);
navigation_controller.LoadURL(GURL(kOtherExampleURL));
- loop.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(kOtherExampleURL, navigation_controller.GetURL().spec());
}
« no previous file with comments | « base/win/object_watcher_unittest.cc ('k') | blimp/client/core/contents/blimp_navigation_controller_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698