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

Unified Diff: chrome/browser/safe_browsing/client_side_detection_service_unittest.cc

Issue 11413050: chrome/browser: Update calls from RunAllPending() to RunUntilIdle(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/client_side_detection_service_unittest.cc
diff --git a/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc b/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc
index e7e1dbdb2461291e89202fca0ea9eca035254684..45b2591c159970b1cde8c912fc980084acff3e39 100644
--- a/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc
+++ b/chrome/browser/safe_browsing/client_side_detection_service_unittest.cc
@@ -72,7 +72,7 @@ class ClientSideDetectionServiceTest : public testing::Test {
}
virtual void TearDown() {
- msg_loop_.RunAllPending();
+ msg_loop_.RunUntilIdle();
csd_service_.reset();
file_thread_.reset();
browser_thread_.reset();
@@ -330,7 +330,7 @@ TEST_F(ClientSideDetectionServiceTest, ServiceObjectDeletedBeforeCallbackDone) {
csd_service_.reset();
// Waiting for the callbacks to run should not crash even if the service
// object is gone.
- msg_loop_.RunAllPending();
+ msg_loop_.RunUntilIdle();
}
TEST_F(ClientSideDetectionServiceTest, SendClientReportPhishingRequest) {
@@ -640,7 +640,7 @@ TEST_F(ClientSideDetectionServiceTest, SetEnabledAndRefreshState) {
EXPECT_TRUE(csd_service_->model_fetcher_.get() != NULL);
csd_service_->SetEnabledAndRefreshState(false);
EXPECT_TRUE(csd_service_->model_fetcher_.get() == NULL);
- msg_loop_.RunAllPending();
+ msg_loop_.RunUntilIdle();
// No calls expected.
Mock::VerifyAndClearExpectations(service);

Powered by Google App Engine
This is Rietveld 408576698