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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc

Issue 2623423003: [LayoutNG] Put #includes in alphabetical order. (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
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/layout/ng/ng_inline_node.h" 5 #include "core/layout/ng/ng_inline_node.h"
6 6
7 #include "core/layout/ng/ng_constraint_space.h" 7 #include "core/layout/ng/ng_constraint_space.h"
8 #include "core/layout/ng/ng_constraint_space_builder.h" 8 #include "core/layout/ng/ng_constraint_space_builder.h"
9 #include "core/layout/ng/ng_fragment_builder.h" 9 #include "core/layout/ng/ng_fragment_builder.h"
10 #include "core/layout/ng/ng_line_builder.h"
10 #include "core/layout/ng/ng_physical_box_fragment.h" 11 #include "core/layout/ng/ng_physical_box_fragment.h"
11 #include "core/layout/ng/ng_physical_text_fragment.h" 12 #include "core/layout/ng/ng_physical_text_fragment.h"
12 #include "core/layout/ng/ng_text_fragment.h" 13 #include "core/layout/ng/ng_text_fragment.h"
13 #include "core/layout/ng/ng_text_layout_algorithm.h" 14 #include "core/layout/ng/ng_text_layout_algorithm.h"
14 #include "core/layout/ng/ng_line_builder.h"
15 #include "core/style/ComputedStyle.h" 15 #include "core/style/ComputedStyle.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class NGInlineNodeForTest : public NGInlineNode { 20 class NGInlineNodeForTest : public NGInlineNode {
21 public: 21 public:
22 NGInlineNodeForTest(const ComputedStyle* block_style) { 22 NGInlineNodeForTest(const ComputedStyle* block_style) {
23 block_style_ = const_cast<ComputedStyle*>(block_style); 23 block_style_ = const_cast<ComputedStyle*>(block_style);
24 } 24 }
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 CreateLine(node, &fragments); 185 CreateLine(node, &fragments);
186 ASSERT_EQ(5u, fragments.size()); 186 ASSERT_EQ(5u, fragments.size());
187 TEST_TEXT_FRAGMENT(fragments[0], node, 0u, 1u, TextDirection::kLtr); 187 TEST_TEXT_FRAGMENT(fragments[0], node, 0u, 1u, TextDirection::kLtr);
188 TEST_TEXT_FRAGMENT(fragments[1], node, 6u, 7u, TextDirection::kRtl); 188 TEST_TEXT_FRAGMENT(fragments[1], node, 6u, 7u, TextDirection::kRtl);
189 TEST_TEXT_FRAGMENT(fragments[2], node, 4u, 5u, TextDirection::kLtr); 189 TEST_TEXT_FRAGMENT(fragments[2], node, 4u, 5u, TextDirection::kLtr);
190 TEST_TEXT_FRAGMENT(fragments[3], node, 2u, 3u, TextDirection::kRtl); 190 TEST_TEXT_FRAGMENT(fragments[3], node, 2u, 3u, TextDirection::kRtl);
191 TEST_TEXT_FRAGMENT(fragments[4], node, 8u, 9u, TextDirection::kLtr); 191 TEST_TEXT_FRAGMENT(fragments[4], node, 8u, 9u, TextDirection::kLtr);
192 } 192 }
193 193
194 } // namespace blink 194 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698