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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParserTest.cpp

Issue 2645303002: Use a new Supplement constructor for supplements in core/ (Closed)
Patch Set: temp Created 3 years, 11 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/html/parser/HTMLDocumentParserTest.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParserTest.cpp b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParserTest.cpp
index cb194b586c1e9a4916d15020cfd9b494941ce734..f053023220d26751b66b84c5de307e3ce5efb4e6 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParserTest.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParserTest.cpp
@@ -21,8 +21,8 @@ class TestPrerendererClient : public GarbageCollected<TestPrerendererClient>,
USING_GARBAGE_COLLECTED_MIXIN(TestPrerendererClient);
public:
- TestPrerendererClient(bool isPrefetchOnly)
- : m_isPrefetchOnly(isPrefetchOnly) {}
+ TestPrerendererClient(Page& page, bool isPrefetchOnly)
+ : PrerendererClient(page), m_isPrefetchOnly(isPrefetchOnly) {}
private:
void willAddPrerender(Prerender*) override{};
@@ -54,7 +54,8 @@ class HTMLDocumentParserTest : public testing::Test {
TEST_F(HTMLDocumentParserTest, AppendPrefetch) {
HTMLDocument& document = toHTMLDocument(m_dummyPageHolder->document());
- providePrerendererClientTo(*document.page(), new TestPrerendererClient(true));
+ providePrerendererClientTo(*document.page(),
+ new TestPrerendererClient(*document.page(), true));
EXPECT_TRUE(document.isPrefetchOnly());
HTMLDocumentParser* parser = createParser(document);
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/FileReader.cpp ('k') | third_party/WebKit/Source/core/loader/PrerendererClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698