| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/bubble/bubble_border.h" | 5 #include "ui/views/bubble/bubble_border.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
| 7 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 9 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
| 10 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 11 #include "ui/views/test/views_test_base.h" | 14 #include "ui/views/test/views_test_base.h" |
| 12 | 15 |
| 13 namespace views { | 16 namespace views { |
| 14 | 17 |
| 15 typedef views::ViewsTestBase BubbleBorderTest; | 18 typedef views::ViewsTestBase BubbleBorderTest; |
| 16 | 19 |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 EXPECT_GE(border_images->border_thickness, | 440 EXPECT_GE(border_images->border_thickness, |
| 438 border_images->border_interior_thickness); | 441 border_images->border_interior_thickness); |
| 439 | 442 |
| 440 // For a TOP_LEFT arrow, the x-offset always matches the border thickness. | 443 // For a TOP_LEFT arrow, the x-offset always matches the border thickness. |
| 441 EXPECT_EQ(border.GetArrowRect(rect).x(), border_images->border_thickness); | 444 EXPECT_EQ(border.GetArrowRect(rect).x(), border_images->border_thickness); |
| 442 border.Paint(paint_view, &canvas); | 445 border.Paint(paint_view, &canvas); |
| 443 } | 446 } |
| 444 } | 447 } |
| 445 | 448 |
| 446 } // namespace views | 449 } // namespace views |
| OLD | NEW |