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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimRequest.cpp

Issue 1833303002: [Not committed] Make image load completion async and remove EventSender from ImageLoader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Loader_asyncImageLoadEvent_1
Patch Set: cleanup, fix new layout tests Created 4 years, 9 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: 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)

Powered by Google App Engine
This is Rietveld 408576698