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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/FloatRectTest.cpp

Issue 2795713004: Rewrite references to "wtf/" to "platform/wtf/" in platform/geometry. (Closed)
Patch Set: Created 3 years, 8 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 "platform/geometry/FloatRect.h" 5 #include "platform/geometry/FloatRect.h"
6 6
7 #include "platform/geometry/FloatPoint.h" 7 #include "platform/geometry/FloatPoint.h"
8 #include "platform/geometry/GeometryTestHelpers.h" 8 #include "platform/geometry/GeometryTestHelpers.h"
9 #include "platform/wtf/text/WTFString.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 #include "wtf/text/WTFString.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 TEST(FloatRectTest, SquaredDistanceToTest) { 14 TEST(FloatRectTest, SquaredDistanceToTest) {
15 // 15 //
16 // O--x 16 // O--x
17 // | 17 // |
18 // y 18 // y
19 // 19 //
20 // FloatRect.x() FloatRect.maxX() 20 // FloatRect.x() FloatRect.maxX()
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 std::numeric_limits<float>::infinity(), 155 std::numeric_limits<float>::infinity(),
156 std::numeric_limits<float>::infinity()); 156 std::numeric_limits<float>::infinity());
157 EXPECT_EQ("-inf,-inf infxinf", infiniteRect.toString()); 157 EXPECT_EQ("-inf,-inf infxinf", infiniteRect.toString());
158 158
159 FloatRect nanRect(0, 0, std::numeric_limits<float>::signaling_NaN(), 159 FloatRect nanRect(0, 0, std::numeric_limits<float>::signaling_NaN(),
160 std::numeric_limits<float>::signaling_NaN()); 160 std::numeric_limits<float>::signaling_NaN());
161 EXPECT_EQ("0,0 nanxnan", nanRect.toString()); 161 EXPECT_EQ("0,0 nanxnan", nanRect.toString());
162 } 162 }
163 163
164 } // namespace blink 164 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698