OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/html/HTMLEmbedElement.h" | 5 #include "core/html/HTMLEmbedElement.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
9 #include "core/frame/LocalFrameView.h" | 9 #include "core/frame/LocalFrameView.h" |
10 #include "core/html/HTMLObjectElement.h" | 10 #include "core/html/HTMLObjectElement.h" |
11 #include "core/style/ComputedStyle.h" | 11 #include "core/style/ComputedStyle.h" |
12 #include "core/testing/DummyPageHolder.h" | 12 #include "core/testing/DummyPageHolder.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class HTMLEmbedElementTest : public testing::Test { | 17 class HTMLEmbedElementTest : public ::testing::Test { |
18 protected: | 18 protected: |
19 HTMLEmbedElementTest() {} | 19 HTMLEmbedElementTest() {} |
20 | 20 |
21 void SetUp() override; | 21 void SetUp() override; |
22 | 22 |
23 Document& GetDocument() const { return *document_; } | 23 Document& GetDocument() const { return *document_; } |
24 | 24 |
25 void SetHtmlInnerHTML(const char* html_content); | 25 void SetHtmlInnerHTML(const char* html_content); |
26 | 26 |
27 std::unique_ptr<DummyPageHolder> dummy_page_holder_; | 27 std::unique_ptr<DummyPageHolder> dummy_page_holder_; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 EXPECT_TRUE(object->HasFallbackContent()); | 82 EXPECT_TRUE(object->HasFallbackContent()); |
83 EXPECT_TRUE(object->UseFallbackContent()); | 83 EXPECT_TRUE(object->UseFallbackContent()); |
84 EXPECT_TRUE(object->WillUseFallbackContentAtLayout()); | 84 EXPECT_TRUE(object->WillUseFallbackContentAtLayout()); |
85 | 85 |
86 GetDocument().View()->UpdateAllLifecyclePhases(); | 86 GetDocument().View()->UpdateAllLifecyclePhases(); |
87 EXPECT_TRUE(static_cast<Element*>(embed)->LayoutObjectIsNeeded( | 87 EXPECT_TRUE(static_cast<Element*>(embed)->LayoutObjectIsNeeded( |
88 ComputedStyle::InitialStyle())); | 88 ComputedStyle::InitialStyle())); |
89 } | 89 } |
90 | 90 |
91 } // namespace blink | 91 } // namespace blink |
OLD | NEW |