Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1514)

Side by Side Diff: Source/core/layout/MultiColumnFragmentainerGroupTest.cpp

Issue 1162383003: C++11: Replace 0 with nullptr where applicable in layout code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add one more file. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/layout/LayoutView.cpp ('k') | Source/core/layout/OrderIterator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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(0), m_columnSet(0) { } 21 MultiColumnFragmentainerGroupTest() : m_flowThread(nullptr), m_columnSet(nul lptr) { }
22 22
23 protected: 23 protected:
24 virtual void SetUp() override; 24 virtual void SetUp() override;
25 virtual void TearDown() override; 25 virtual 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:
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutView.cpp ('k') | Source/core/layout/OrderIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698