| OLD | NEW |
| 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/DoubleRect.h" | 5 #include "platform/geometry/DoubleRect.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(DoubleRectTest, ToString) { | 12 TEST(DoubleRectTest, ToString) { |
| 13 DoubleRect emptyRect = DoubleRect(); | 13 DoubleRect emptyRect = DoubleRect(); |
| 14 EXPECT_EQ("0,0 0x0", emptyRect.toString()); | 14 EXPECT_EQ("0,0 0x0", emptyRect.toString()); |
| 15 | 15 |
| 16 DoubleRect rect(1, 2, 3, 4); | 16 DoubleRect rect(1, 2, 3, 4); |
| 17 EXPECT_EQ("1,2 3x4", rect.toString()); | 17 EXPECT_EQ("1,2 3x4", rect.toString()); |
| 18 | 18 |
| 19 DoubleRect granularRect(1.6, 2.7, 3.8, 4.9); | 19 DoubleRect granularRect(1.6, 2.7, 3.8, 4.9); |
| 20 EXPECT_EQ("1.6,2.7 3.8x4.9", granularRect.toString()); | 20 EXPECT_EQ("1.6,2.7 3.8x4.9", granularRect.toString()); |
| 21 } | 21 } |
| 22 | 22 |
| 23 } // namespace blink | 23 } // namespace blink |
| OLD | NEW |