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

Side by Side Diff: Source/core/rendering/RenderingTestHelper.h

Issue 467943005: Allow passing mock FrameLoaderClient to DummyPageHolder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « Source/core/page/PrintContextTest.cpp ('k') | Source/core/streams/ReadableStreamTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/Document.h"
5 #include "core/frame/FrameView.h" 6 #include "core/frame/FrameView.h"
6 #include "core/html/HTMLElement.h" 7 #include "core/html/HTMLElement.h"
7 #include "core/testing/DummyPageHolder.h" 8 #include "core/testing/DummyPageHolder.h"
8 #include "wtf/OwnPtr.h" 9 #include "wtf/OwnPtr.h"
9 #include <gtest/gtest.h> 10 #include <gtest/gtest.h>
10 11
11 namespace blink { 12 namespace blink {
12 13
13 class RenderingTest : public testing::Test { 14 class RenderingTest : public testing::Test {
14 protected: 15 protected:
(...skipping 12 matching lines...) Expand all
27 { 28 {
28 document().body()->setInnerHTML(String::fromUTF8(htmlContent), ASSERT_NO _EXCEPTION); 29 document().body()->setInnerHTML(String::fromUTF8(htmlContent), ASSERT_NO _EXCEPTION);
29 document().view()->updateLayoutAndStyleIfNeededRecursive(); 30 document().view()->updateLayoutAndStyleIfNeededRecursive();
30 } 31 }
31 32
32 private: 33 private:
33 OwnPtr<DummyPageHolder> m_pageHolder; 34 OwnPtr<DummyPageHolder> m_pageHolder;
34 }; 35 };
35 36
36 } // namespace blink 37 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/page/PrintContextTest.cpp ('k') | Source/core/streams/ReadableStreamTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698