| OLD | NEW |
| 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 #ifndef LayoutTestHelper_h | 5 #ifndef LayoutTestHelper_h |
| 6 #define LayoutTestHelper_h | 6 #define LayoutTestHelper_h |
| 7 | 7 |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/frame/FrameHost.h" | 9 #include "core/frame/FrameHost.h" |
| 10 #include "core/frame/FrameView.h" | 10 #include "core/frame/FrameView.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 Member<LocalFrame> m_parent; | 66 Member<LocalFrame> m_parent; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 class RenderingTest : public testing::Test { | 69 class RenderingTest : public testing::Test { |
| 70 USING_FAST_MALLOC(RenderingTest); | 70 USING_FAST_MALLOC(RenderingTest); |
| 71 | 71 |
| 72 public: | 72 public: |
| 73 virtual FrameSettingOverrideFunction settingOverrider() const { | 73 virtual FrameSettingOverrideFunction settingOverrider() const { |
| 74 return nullptr; | 74 return nullptr; |
| 75 } | 75 } |
| 76 virtual ChromeClient& chromeClient() const; |
| 76 | 77 |
| 77 RenderingTest(FrameLoaderClient* = nullptr); | 78 RenderingTest(FrameLoaderClient* = nullptr); |
| 78 | 79 |
| 79 protected: | 80 protected: |
| 80 void SetUp() override; | 81 void SetUp() override; |
| 81 void TearDown() override; | 82 void TearDown() override; |
| 82 | 83 |
| 83 Document& document() const { return m_pageHolder->document(); } | 84 Document& document() const { return m_pageHolder->document(); } |
| 84 LayoutView& layoutView() const { | 85 LayoutView& layoutView() const { |
| 85 return *toLayoutView( | 86 return *toLayoutView( |
| (...skipping 26 matching lines...) Expand all Loading... |
| 112 } | 113 } |
| 113 | 114 |
| 114 private: | 115 private: |
| 115 Persistent<FrameLoaderClient> m_frameLoaderClient; | 116 Persistent<FrameLoaderClient> m_frameLoaderClient; |
| 116 std::unique_ptr<DummyPageHolder> m_pageHolder; | 117 std::unique_ptr<DummyPageHolder> m_pageHolder; |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 } // namespace blink | 120 } // namespace blink |
| 120 | 121 |
| 121 #endif // LayoutTestHelper_h | 122 #endif // LayoutTestHelper_h |
| OLD | NEW |