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

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 555cbbe913ac298c31c00076895fe6a27a81a2c3..0a12cdcd34e5f8799184485e7d34b43ac737672b 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/blimp_contents_impl.h"
#include "blimp/client/core/contents/fake_navigation_feature.h"
#include "blimp/client/public/contents/blimp_contents_observer.h"
@@ -48,7 +49,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());
@@ -56,7 +57,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());
}

Powered by Google App Engine
This is Rietveld 408576698