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

Unified Diff: chrome/browser/autocomplete/history_quick_provider_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: chrome/browser/autocomplete/history_quick_provider_unittest.cc
diff --git a/chrome/browser/autocomplete/history_quick_provider_unittest.cc b/chrome/browser/autocomplete/history_quick_provider_unittest.cc
index 4afb262b9303857457c790697d083a61f90cd62e..6b884144c243893f3cc665e4ecb956ab132d9c20 100644
--- a/chrome/browser/autocomplete/history_quick_provider_unittest.cc
+++ b/chrome/browser/autocomplete/history_quick_provider_unittest.cc
@@ -134,7 +134,7 @@ class HistoryQuickProviderTest : public testing::Test,
// Pass-through functions to simplify our friendship with URLIndexPrivateData.
bool UpdateURL(const history::URLRow& row);
- MessageLoopForUI message_loop_;
+ base::MessageLoopForUI message_loop_;
content::TestBrowserThread ui_thread_;
content::TestBrowserThread file_thread_;
@@ -227,9 +227,15 @@ void HistoryQuickProviderTest::RunTest(const string16 text,
bool can_inline_top_result,
string16 expected_fill_into_edit) {
SCOPED_TRACE(text); // Minimal hint to query being run.
- MessageLoop::current()->RunUntilIdle();
- AutocompleteInput input(text, string16::npos, string16(), GURL(),false, false,
- true, AutocompleteInput::ALL_MATCHES);
+ base::MessageLoop::current()->RunUntilIdle();
+ AutocompleteInput input(text,
brettw 2013/04/28 04:26:27 I wouldn't bother changing this (I would normally
+ string16::npos,
+ string16(),
+ GURL(),
+ false,
+ false,
+ true,
+ AutocompleteInput::ALL_MATCHES);
provider_->Start(input, false);
EXPECT_TRUE(provider_->done());

Powered by Google App Engine
This is Rietveld 408576698