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

Unified Diff: components/omnibox/browser/history_url_provider_unittest.cc

Issue 2082333002: Remove calls to deprecated MessageLoop methods in components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: components/omnibox/browser/history_url_provider_unittest.cc
diff --git a/components/omnibox/browser/history_url_provider_unittest.cc b/components/omnibox/browser/history_url_provider_unittest.cc
index 64c8232350e65ded9a609edcb05a70bbeafe1cff..c8b5a85b5a36e7215d161ff209272b06b8fe7090 100644
--- a/components/omnibox/browser/history_url_provider_unittest.cc
+++ b/components/omnibox/browser/history_url_provider_unittest.cc
@@ -13,6 +13,7 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
@@ -328,7 +329,7 @@ void HistoryURLProviderTest::RunTest(
*identified_input_type = input.type();
autocomplete_->Start(input, false);
if (!autocomplete_->done())
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
matches_ = autocomplete_->matches();
if (sort_matches_) {
@@ -665,7 +666,7 @@ TEST_F(HistoryURLProviderTest, EmptyVisits) {
int pandora_relevance = matches_[0].relevance;
// Run the message loop. When |autocomplete_| finishes the loop is quit.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_TRUE(autocomplete_->done());
matches_ = autocomplete_->matches();
ASSERT_GT(matches_.size(), 0u);
@@ -698,7 +699,7 @@ TEST_F(HistoryURLProviderTest, DontAutocompleteOnTrailingWhitespace) {
TestSchemeClassifier());
autocomplete_->Start(input, false);
if (!autocomplete_->done())
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
// None of the matches should attempt to autocomplete.
matches_ = autocomplete_->matches();
@@ -837,7 +838,7 @@ TEST_F(HistoryURLProviderTest, CrashDueToFixup) {
true, false, TestSchemeClassifier());
autocomplete_->Start(input, false);
if (!autocomplete_->done())
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
}

Powered by Google App Engine
This is Rietveld 408576698