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 #include "core/layout/LayoutTheme.h" | 5 #include "core/layout/LayoutTheme.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
8 #include "core/dom/NodeComputedStyle.h" | 9 #include "core/dom/NodeComputedStyle.h" |
9 #include "core/frame/FrameView.h" | 10 #include "core/frame/FrameView.h" |
10 #include "core/html/HTMLElement.h" | 11 #include "core/html/HTMLElement.h" |
11 #include "core/page/FocusController.h" | 12 #include "core/page/FocusController.h" |
12 #include "core/page/Page.h" | 13 #include "core/page/Page.h" |
13 #include "core/style/ComputedStyle.h" | 14 #include "core/style/ComputedStyle.h" |
14 #include "core/testing/DummyPageHolder.h" | 15 #include "core/testing/DummyPageHolder.h" |
15 #include "platform/graphics/Color.h" | 16 #include "platform/graphics/Color.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 #include <memory> | |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 class LayoutThemeTest : public ::testing::Test { | 21 class LayoutThemeTest : public ::testing::Test { |
22 protected: | 22 protected: |
23 void SetUp() override; | 23 void SetUp() override; |
24 Document& document() const { return *m_document; } | 24 Document& document() const { return *m_document; } |
25 void setHtmlInnerHTML(const char* htmlContent); | 25 void setHtmlInnerHTML(const char* htmlContent); |
26 | 26 |
27 private: | 27 private: |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 }; | 96 }; |
97 | 97 |
98 for (const auto& testcase : tests) { | 98 for (const auto& testcase : tests) { |
99 EXPECT_EQ(testcase.expectedResult, | 99 EXPECT_EQ(testcase.expectedResult, |
100 LayoutTheme::theme().formatMediaControlsCurrentTime( | 100 LayoutTheme::theme().formatMediaControlsCurrentTime( |
101 testcase.time, testcase.duration)); | 101 testcase.time, testcase.duration)); |
102 } | 102 } |
103 } | 103 } |
104 | 104 |
105 } // namespace blink | 105 } // namespace blink |
OLD | NEW |