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

Unified Diff: chrome/browser/safe_browsing/malware_details_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
Index: chrome/browser/safe_browsing/malware_details_unittest.cc
diff --git a/chrome/browser/safe_browsing/malware_details_unittest.cc b/chrome/browser/safe_browsing/malware_details_unittest.cc
index cf54beb2887dfb168c6527365010556536d702b1..10daca1a4057d21b871055d3b6bfd69489432538 100644
--- a/chrome/browser/safe_browsing/malware_details_unittest.cc
+++ b/chrome/browser/safe_browsing/malware_details_unittest.cc
@@ -126,7 +126,7 @@ void QuitUIMessageLoop() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
BrowserThread::PostTask(BrowserThread::UI,
FROM_HERE,
- MessageLoop::QuitClosure());
+ base::MessageLoop::QuitClosure());
}
// Lets us provide a MockURLRequestContext with an HTTP Cache we pre-populate.
@@ -214,7 +214,7 @@ class MalwareDetailsTest : public ChromeRenderViewHostTestHarness {
base::Bind(&MalwareDetails::FinishCollection, report));
// Wait for the callback (SendSerializedMalwareDetails).
DVLOG(1) << "Waiting for SendSerializedMalwareDetails";
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
return ui_manager_->GetSerialized();
}
@@ -421,7 +421,7 @@ TEST_F(MalwareDetailsTest, MalwareDOMDetails) {
params.push_back(parent_node);
report->OnReceivedMalwareDOMDetails(params);
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
std::string serialized = WaitForSerializedReport(report);
ClientMalwareReportRequest actual;
@@ -553,7 +553,7 @@ TEST_F(MalwareDetailsTest, HTTPCache) {
report->OnReceivedMalwareDOMDetails(params);
// Let the cache callbacks complete
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
DVLOG(1) << "Getting serialized report";
std::string serialized = WaitForSerializedReport(report);
@@ -624,7 +624,7 @@ TEST_F(MalwareDetailsTest, HTTPCacheNoEntries) {
report->OnReceivedMalwareDOMDetails(params);
// Let the cache callbacks complete
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
DVLOG(1) << "Getting serialized report";
std::string serialized = WaitForSerializedReport(report);
@@ -673,7 +673,7 @@ TEST_F(MalwareDetailsTest, HistoryServiceUrls) {
report->OnReceivedMalwareDOMDetails(params);
// Let the redirects callbacks complete.
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
std::string serialized = WaitForSerializedReport(report);
ClientMalwareReportRequest actual;

Powered by Google App Engine
This is Rietveld 408576698