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

Unified Diff: chrome/browser/history/history_querying_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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 | « chrome/browser/history/history_browsertest.cc ('k') | chrome/browser/history/history_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_querying_unittest.cc
diff --git a/chrome/browser/history/history_querying_unittest.cc b/chrome/browser/history/history_querying_unittest.cc
index 6e1d12b0b927965899203d8b6b70ee501eefc062..0b6781ad8ee3bac17d81a6c20ea8eb175ffaa070 100644
--- a/chrome/browser/history/history_querying_unittest.cc
+++ b/chrome/browser/history/history_querying_unittest.cc
@@ -85,7 +85,8 @@ class HistoryQueryTest : public testing::Test {
UTF8ToUTF16(text_query), options, &consumer_,
base::Bind(&HistoryQueryTest::QueryHistoryComplete,
base::Unretained(this)));
- MessageLoop::current()->Run(); // Will go until ...Complete calls Quit.
+ // Will go until ...Complete calls Quit.
+ base::MessageLoop::current()->Run();
results->Swap(&last_query_results_);
}
@@ -182,21 +183,21 @@ class HistoryQueryTest : public testing::Test {
virtual void TearDown() {
if (history_) {
- history_->SetOnBackendDestroyTask(MessageLoop::QuitClosure());
+ history_->SetOnBackendDestroyTask(base::MessageLoop::QuitClosure());
history_->Cleanup();
history_.reset();
- MessageLoop::current()->Run(); // Wait for the other thread.
+ base::MessageLoop::current()->Run(); // Wait for the other thread.
}
}
void QueryHistoryComplete(HistoryService::Handle, QueryResults* results) {
results->Swap(&last_query_results_);
- MessageLoop::current()->Quit(); // Will return out to QueryHistory.
+ base::MessageLoop::current()->Quit(); // Will return out to QueryHistory.
}
base::ScopedTempDir temp_dir_;
- MessageLoop message_loop_;
+ base::MessageLoop message_loop_;
base::FilePath history_dir_;
« no previous file with comments | « chrome/browser/history/history_browsertest.cc ('k') | chrome/browser/history/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698