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

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: Rebase. Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/ImageLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9aacb90f771f1a17fadf79567949b8038c697ef8..20af8377dbbc2a384d470a3b98ce7ab107bf645f 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"
@@ -70,6 +71,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)
« no previous file with comments | « third_party/WebKit/Source/core/loader/ImageLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698