Index: third_party/WebKit/Source/core/page/EventSourceTest.cpp |
diff --git a/third_party/WebKit/Source/core/page/EventSourceTest.cpp b/third_party/WebKit/Source/core/page/EventSourceTest.cpp |
index 6ab1b8197d81e706e7b0116340f1cebdf7554c98..93f437efbf9db6594b4cb342c1b71fa5624aa651 100644 |
--- a/third_party/WebKit/Source/core/page/EventSourceTest.cpp |
+++ b/third_party/WebKit/Source/core/page/EventSourceTest.cpp |
@@ -14,6 +14,7 @@ |
#include "core/events/Event.h" |
#include "core/events/EventListener.h" |
#include "core/events/MessageEvent.h" |
+#include "core/loader/MockThreadableLoader.h" |
#include "core/page/EventSourceInit.h" |
#include "core/testing/DummyPageHolder.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -67,11 +68,11 @@ protected: |
, m_source(EventSource::create(&document(), "https://localhost/", EventSourceInit(), m_exceptionState)) |
{ |
source()->setStateForTest(EventSource::OPEN); |
- source()->setRequestInFlightForTest(true); |
+ source()->setThreadableLoaderForTest(MockThreadableLoader::create()); |
} |
~EventSourceTest() override |
{ |
- source()->setRequestInFlightForTest(false); |
+ source()->setThreadableLoaderForTest(nullptr); |
source()->close(); |
// We need this because there is |