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

Unified Diff: chrome/browser/safe_browsing/browser_feature_extractor_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/browser_feature_extractor_unittest.cc
diff --git a/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc b/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc
index 726d175d81f865218bbfae714cf57a6466ddd0b3..034cbdc3ec3d6c948f86ad880ff4f9c6b0821f5c 100644
--- a/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc
+++ b/chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc
@@ -116,7 +116,7 @@ class BrowserFeatureExtractorTest : public ChromeRenderViewHostTestHarness {
bool ExtractFeatures(ClientPhishingRequest* request) {
StartExtractFeatures(request);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(1U, success_.count(request));
return success_.count(request) ? success_[request] : false;
}
@@ -173,7 +173,7 @@ class BrowserFeatureExtractorTest : public ChromeRenderViewHostTestHarness {
ASSERT_EQ(0U, success_.count(request));
success_[request] = success;
if (--num_pending_ == 0) {
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
}
};
@@ -279,7 +279,7 @@ TEST_F(BrowserFeatureExtractorTest, MultipleRequestsAtOnce) {
request2.set_client_score(1.0);
StartExtractFeatures(&request2);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_TRUE(success_[&request]);
// Success is false because the second URL is not in the history and we are
// not able to distinguish between a missing URL in the history and an error.

Powered by Google App Engine
This is Rietveld 408576698