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

Unified Diff: chrome/browser/safe_browsing/download_protection_service_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/safe_browsing/download_protection_service_unittest.cc
diff --git a/chrome/browser/safe_browsing/download_protection_service_unittest.cc b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
index af98856947666248f451696758afb5f51e17126d..514bdafe238664216e2fd18808065231e9db2a76 100644
--- a/chrome/browser/safe_browsing/download_protection_service_unittest.cc
+++ b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
@@ -245,7 +245,7 @@ class DownloadProtectionServiceTest : public testing::Test {
private:
// Helper functions for FlushThreadMessageLoops.
void RunAllPendingAndQuitUI() {
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
BrowserThread::PostTask(
BrowserThread::UI,
FROM_HERE,
@@ -254,7 +254,7 @@ class DownloadProtectionServiceTest : public testing::Test {
}
void QuitMessageLoop() {
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
void PostRunMessageLoopTask(BrowserThread::ID thread) {
@@ -301,7 +301,7 @@ class DownloadProtectionServiceTest : public testing::Test {
scoped_refptr<FakeSafeBrowsingService> sb_service_;
scoped_refptr<MockSignatureUtil> signature_util_;
DownloadProtectionService* download_service_;
- MessageLoop msg_loop_;
+ base::MessageLoop msg_loop_;
DownloadProtectionService::DownloadCheckResult result_;
bool has_result_;
scoped_ptr<content::TestBrowserThread> io_thread_;
@@ -820,10 +820,11 @@ TEST_F(DownloadProtectionServiceTest, CheckClientDownloadValidateRequest) {
EXPECT_EQ("dummy cert data", chain.element(0).certificate());
// Simulate the request finishing.
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&DownloadProtectionServiceTest::SendURLFetchComplete,
- base::Unretained(this), fetcher));
+ base::Unretained(this),
+ fetcher));
msg_loop_.Run();
#endif
}
@@ -891,10 +892,11 @@ TEST_F(DownloadProtectionServiceTest,
EXPECT_EQ(0, request.signature().certificate_chain_size());
// Simulate the request finishing.
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&DownloadProtectionServiceTest::SendURLFetchComplete,
- base::Unretained(this), fetcher));
+ base::Unretained(this),
+ fetcher));
msg_loop_.Run();
#endif
}

Powered by Google App Engine
This is Rietveld 408576698