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

Unified Diff: third_party/WebKit/Source/core/page/EventSourceTest.cpp

Issue 1264453002: Split the constructor of ThreadableLoader into two methods (ctor and start()) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed pipes around non-variables in a comment Created 4 years, 10 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/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
« no previous file with comments | « third_party/WebKit/Source/core/page/EventSource.cpp ('k') | third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698