OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "gfx/rect.h" | 6 #include "gfx/rect.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 typedef testing::Test RectTest; | 9 typedef testing::Test RectTest; |
10 | 10 |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 gfx::Rect just_above_no_edge(2, 1, 5, 2); // too wide | 305 gfx::Rect just_above_no_edge(2, 1, 5, 2); // too wide |
306 gfx::Rect just_below_no_edge(2, 8, 3, 2); // too narrow | 306 gfx::Rect just_below_no_edge(2, 8, 3, 2); // too narrow |
307 gfx::Rect just_left_no_edge(0, 3, 2, 6); // too tall | 307 gfx::Rect just_left_no_edge(0, 3, 2, 6); // too tall |
308 gfx::Rect just_right_no_edge(6, 3, 2, 4); // too short | 308 gfx::Rect just_right_no_edge(6, 3, 2, 4); // too short |
309 | 309 |
310 EXPECT_FALSE(r.SharesEdgeWith(just_above_no_edge)); | 310 EXPECT_FALSE(r.SharesEdgeWith(just_above_no_edge)); |
311 EXPECT_FALSE(r.SharesEdgeWith(just_below_no_edge)); | 311 EXPECT_FALSE(r.SharesEdgeWith(just_below_no_edge)); |
312 EXPECT_FALSE(r.SharesEdgeWith(just_left_no_edge)); | 312 EXPECT_FALSE(r.SharesEdgeWith(just_left_no_edge)); |
313 EXPECT_FALSE(r.SharesEdgeWith(just_right_no_edge)); | 313 EXPECT_FALSE(r.SharesEdgeWith(just_right_no_edge)); |
314 } | 314 } |
OLD | NEW |