Index: third_party/WebKit/Source/web/tests/sim/SimRequest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp b/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp |
index 31ff3b6c0890c590bcab81c28c13d723b94fef09..07ce0f0ccd665a8689b7a5d63c5b47bdc0a548ac 100644 |
--- a/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp |
+++ b/third_party/WebKit/Source/web/tests/sim/SimRequest.cpp |
@@ -4,6 +4,7 @@ |
#include "web/tests/sim/SimRequest.h" |
+#include "platform/testing/UnitTestHelpers.h" |
#include "platform/weborigin/KURL.h" |
#include "public/platform/Platform.h" |
#include "public/platform/WebURLLoaderClient.h" |
@@ -69,6 +70,9 @@ void SimRequest::finish() |
m_client->didFinishLoading(m_loader, 0, m_totalEncodedDataLength); |
} |
reset(); |
+ |
+ // Pump the message loop to process the load event. |
+ testing::runPendingTasks(); |
} |
void SimRequest::complete(const String& data) |