Index: chrome/browser/extensions/api/web_request/web_request_api_unittest.cc |
diff --git a/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc b/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc |
index e23f2db2ca746ffb328d4365db0d622fd9893a3a..027cf046e6ae549a52ee65e1bd4e4fc8ae6282cd 100644 |
--- a/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc |
+++ b/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc |
@@ -608,7 +608,7 @@ TEST_F(ExtensionWebRequestTest, AccessRequestBodyData) { |
FireURLRequestWithData(kMethodPost, kMultipart, form_1, form_2); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
// We inspect the result in the message list of |ipc_sender_| later. |
ExtensionWebRequestEventRouter::GetInstance()->RemoveEventListener( |
@@ -650,7 +650,7 @@ TEST_F(ExtensionWebRequestTest, AccessRequestBodyData) { |
// Now send a PUT request with the same body as above. |
FireURLRequestWithData(kMethodPut, NULL /*no header*/, plain_1, plain_2); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
// Clean-up. |
ExtensionWebRequestEventRouter::GetInstance()->RemoveEventListener( |