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 <gtest/gtest.h> |
| 9 #include <memory> |
8 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
9 #include "core/frame/FrameHost.h" | 11 #include "core/frame/FrameHost.h" |
10 #include "core/frame/FrameView.h" | 12 #include "core/frame/FrameView.h" |
11 #include "core/frame/Settings.h" | 13 #include "core/frame/Settings.h" |
12 #include "core/html/HTMLElement.h" | 14 #include "core/html/HTMLElement.h" |
13 #include "core/layout/api/LayoutAPIShim.h" | 15 #include "core/layout/api/LayoutAPIShim.h" |
14 #include "core/layout/api/LayoutViewItem.h" | 16 #include "core/layout/api/LayoutViewItem.h" |
15 #include "core/loader/EmptyClients.h" | 17 #include "core/loader/EmptyClients.h" |
16 #include "core/testing/DummyPageHolder.h" | 18 #include "core/testing/DummyPageHolder.h" |
17 #include "wtf/Allocator.h" | 19 #include "wtf/Allocator.h" |
18 #include <gtest/gtest.h> | |
19 #include <memory> | |
20 | 20 |
21 namespace blink { | 21 namespace blink { |
22 | 22 |
23 class SingleChildFrameLoaderClient final : public EmptyFrameLoaderClient { | 23 class SingleChildFrameLoaderClient final : public EmptyFrameLoaderClient { |
24 public: | 24 public: |
25 static SingleChildFrameLoaderClient* create() { | 25 static SingleChildFrameLoaderClient* create() { |
26 return new SingleChildFrameLoaderClient(); | 26 return new SingleChildFrameLoaderClient(); |
27 } | 27 } |
28 | 28 |
29 DEFINE_INLINE_VIRTUAL_TRACE() { | 29 DEFINE_INLINE_VIRTUAL_TRACE() { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void loadAhem(); | 115 void loadAhem(); |
116 | 116 |
117 private: | 117 private: |
118 Persistent<FrameLoaderClient> m_frameLoaderClient; | 118 Persistent<FrameLoaderClient> m_frameLoaderClient; |
119 std::unique_ptr<DummyPageHolder> m_pageHolder; | 119 std::unique_ptr<DummyPageHolder> m_pageHolder; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace blink | 122 } // namespace blink |
123 | 123 |
124 #endif // LayoutTestHelper_h | 124 #endif // LayoutTestHelper_h |
OLD | NEW |