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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/LayoutRectTest.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/LayoutRect.h" 5 #include "platform/geometry/LayoutRect.h"
6 6
7 #include "platform/wtf/text/WTFString.h"
7 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
8 #include "wtf/text/WTFString.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 TEST(LayoutRectTest, ToString) { 12 TEST(LayoutRectTest, ToString) {
13 LayoutRect emptyRect = LayoutRect(); 13 LayoutRect emptyRect = LayoutRect();
14 EXPECT_EQ("0,0 0x0", emptyRect.toString()); 14 EXPECT_EQ("0,0 0x0", emptyRect.toString());
15 15
16 LayoutRect rect(1, 2, 3, 4); 16 LayoutRect rect(1, 2, 3, 4);
17 EXPECT_EQ("1,2 3x4", rect.toString()); 17 EXPECT_EQ("1,2 3x4", rect.toString());
18 18
(...skipping 16 matching lines...) Expand all
35 EXPECT_TRUE(rect.inclusiveIntersect(LayoutRect(9, 15, 4, 0))); 35 EXPECT_TRUE(rect.inclusiveIntersect(LayoutRect(9, 15, 4, 0)));
36 EXPECT_EQ(rect, LayoutRect(11, 15, 2, 0)); 36 EXPECT_EQ(rect, LayoutRect(11, 15, 2, 0));
37 37
38 rect = LayoutRect(11, 12, 0, 14); 38 rect = LayoutRect(11, 12, 0, 14);
39 EXPECT_FALSE(rect.inclusiveIntersect(LayoutRect(12, 13, 15, 16))); 39 EXPECT_FALSE(rect.inclusiveIntersect(LayoutRect(12, 13, 15, 16)));
40 EXPECT_EQ(rect, LayoutRect()); 40 EXPECT_EQ(rect, LayoutRect());
41 } 41 }
42 #endif 42 #endif
43 43
44 } // namespace blink 44 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698