| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "core/layout/MultiColumnFragmentainerGroup.h" | 7 #include "core/layout/MultiColumnFragmentainerGroup.h" |
| 8 | 8 |
| 9 #include "core/layout/LayoutMultiColumnFlowThread.h" | 9 #include "core/layout/LayoutMultiColumnFlowThread.h" |
| 10 #include "core/layout/LayoutMultiColumnSet.h" | 10 #include "core/layout/LayoutMultiColumnSet.h" |
| 11 #include "core/layout/LayoutTestHelper.h" | 11 #include "core/layout/LayoutTestHelper.h" |
| 12 | 12 |
| 13 #include <gtest/gtest.h> | 13 #include <gtest/gtest.h> |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 class MultiColumnFragmentainerGroupTest : public RenderingTest { | 19 class MultiColumnFragmentainerGroupTest : public RenderingTest { |
| 20 public: | 20 public: |
| 21 MultiColumnFragmentainerGroupTest() : m_flowThread(nullptr), m_columnSet(nul
lptr) { } | 21 MultiColumnFragmentainerGroupTest() : m_flowThread(nullptr), m_columnSet(nul
lptr) { } |
| 22 | 22 |
| 23 protected: | 23 protected: |
| 24 virtual void SetUp() override; | 24 void SetUp() override; |
| 25 virtual void TearDown() override; | 25 void TearDown() override; |
| 26 | 26 |
| 27 LayoutMultiColumnSet& columnSet() { return *m_columnSet; } | 27 LayoutMultiColumnSet& columnSet() { return *m_columnSet; } |
| 28 | 28 |
| 29 static int groupCount(const MultiColumnFragmentainerGroupList&); | 29 static int groupCount(const MultiColumnFragmentainerGroupList&); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 LayoutMultiColumnFlowThread* m_flowThread; | 32 LayoutMultiColumnFlowThread* m_flowThread; |
| 33 LayoutMultiColumnSet* m_columnSet; | 33 LayoutMultiColumnSet* m_columnSet; |
| 34 }; | 34 }; |
| 35 | 35 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 EXPECT_EQ(groupCount(groupList), 3); | 98 EXPECT_EQ(groupCount(groupList), 3); |
| 99 groupList.addExtraGroup(); | 99 groupList.addExtraGroup(); |
| 100 EXPECT_EQ(groupCount(groupList), 4); | 100 EXPECT_EQ(groupCount(groupList), 4); |
| 101 groupList.deleteExtraGroups(); | 101 groupList.deleteExtraGroups(); |
| 102 EXPECT_EQ(groupCount(groupList), 1); | 102 EXPECT_EQ(groupCount(groupList), 1); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // anonymous namespace | 105 } // anonymous namespace |
| 106 | 106 |
| 107 } // blink | 107 } // blink |
| OLD | NEW |