| 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> | 8 #include <gtest/gtest.h> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "core/dom/Document.h" | 11 #include "core/dom/Document.h" |
| 12 #include "core/frame/FrameView.h" | 12 #include "core/frame/FrameView.h" |
| 13 #include "core/frame/LocalFrameClient.h" | 13 #include "core/frame/LocalFrameClient.h" |
| 14 #include "core/frame/Settings.h" | 14 #include "core/frame/Settings.h" |
| 15 #include "core/html/HTMLElement.h" | 15 #include "core/html/HTMLElement.h" |
| 16 #include "core/layout/api/LayoutAPIShim.h" | 16 #include "core/layout/api/LayoutAPIShim.h" |
| 17 #include "core/layout/api/LayoutViewItem.h" | 17 #include "core/layout/api/LayoutViewItem.h" |
| 18 #include "core/loader/EmptyClients.h" | 18 #include "core/loader/EmptyClients.h" |
| 19 #include "core/testing/DummyPageHolder.h" | 19 #include "core/testing/DummyPageHolder.h" |
| 20 #include "wtf/Allocator.h" | 20 #include "platform/wtf/Allocator.h" |
| 21 | 21 |
| 22 namespace blink { | 22 namespace blink { |
| 23 | 23 |
| 24 class SingleChildLocalFrameClient final : public EmptyLocalFrameClient { | 24 class SingleChildLocalFrameClient final : public EmptyLocalFrameClient { |
| 25 public: | 25 public: |
| 26 static SingleChildLocalFrameClient* Create() { | 26 static SingleChildLocalFrameClient* Create() { |
| 27 return new SingleChildLocalFrameClient(); | 27 return new SingleChildLocalFrameClient(); |
| 28 } | 28 } |
| 29 | 29 |
| 30 DEFINE_INLINE_VIRTUAL_TRACE() { | 30 DEFINE_INLINE_VIRTUAL_TRACE() { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void LoadAhem(); | 118 void LoadAhem(); |
| 119 | 119 |
| 120 private: | 120 private: |
| 121 Persistent<LocalFrameClient> local_frame_client_; | 121 Persistent<LocalFrameClient> local_frame_client_; |
| 122 std::unique_ptr<DummyPageHolder> page_holder_; | 122 std::unique_ptr<DummyPageHolder> page_holder_; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace blink | 125 } // namespace blink |
| 126 | 126 |
| 127 #endif // LayoutTestHelper_h | 127 #endif // LayoutTestHelper_h |
| OLD | NEW |