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

Side by Side Diff: third_party/WebKit/Source/core/layout/CollapsedBorderValueTest.cpp

Issue 2970833002: Be explicit about namespace testing to not mix it with blink::testing (Closed)
Patch Set: Created 3 years, 5 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/CollapsedBorderValue.h" 5 #include "core/layout/CollapsedBorderValue.h"
6 6
7 #include "core/style/ComputedStyle.h" 7 #include "core/style/ComputedStyle.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class CollapsedBorderValueTest : public testing::Test { 12 class CollapsedBorderValueTest : public ::testing::Test {
13 protected: 13 protected:
14 void ExpectInvisible(const CollapsedBorderValue& v, 14 void ExpectInvisible(const CollapsedBorderValue& v,
15 unsigned expected_width = 0) { 15 unsigned expected_width = 0) {
16 EXPECT_EQ(expected_width, v.Width()); 16 EXPECT_EQ(expected_width, v.Width());
17 EXPECT_FALSE(v.IsVisible()); 17 EXPECT_FALSE(v.IsVisible());
18 EXPECT_FALSE(v.LessThan(v)); 18 EXPECT_FALSE(v.LessThan(v));
19 EXPECT_FALSE(v.LessThan(CollapsedBorderValue())); 19 EXPECT_FALSE(v.LessThan(CollapsedBorderValue()));
20 EXPECT_TRUE(v.VisuallyEquals(v)); 20 EXPECT_TRUE(v.VisuallyEquals(v));
21 EXPECT_TRUE(v.VisuallyEquals(CollapsedBorderValue())); 21 EXPECT_TRUE(v.VisuallyEquals(CollapsedBorderValue()));
22 EXPECT_TRUE(CollapsedBorderValue().VisuallyEquals(v)); 22 EXPECT_TRUE(CollapsedBorderValue().VisuallyEquals(v));
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // j is put before i to make testing logs easier to understand because 151 // j is put before i to make testing logs easier to understand because
152 // SCOPED_TRACE prints j first. 152 // SCOPED_TRACE prints j first.
153 EXPECT_EQ(rank[j] < rank[i], values[j].LessThan(values[i])); 153 EXPECT_EQ(rank[j] < rank[i], values[j].LessThan(values[i]));
154 EXPECT_EQ(rank[j] == rank[i], values[j].IsSameIgnoringColor(values[i])); 154 EXPECT_EQ(rank[j] == rank[i], values[j].IsSameIgnoringColor(values[i]));
155 EXPECT_EQ(expected_covers_joint[j][i], values[j].CoversJoint(values[i])); 155 EXPECT_EQ(expected_covers_joint[j][i], values[j].CoversJoint(values[i]));
156 } 156 }
157 } 157 }
158 } 158 }
159 159
160 } // namespace blink 160 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698