| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "gfx/canvas.h" | |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "ui/gfx/canvas.h" |
| 9 #include "ui/views/rendering/border.h" | 9 #include "ui/views/rendering/border.h" |
| 10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 | 13 |
| 14 class BorderTest : public testing::Test { | 14 class BorderTest : public testing::Test { |
| 15 public: | 15 public: |
| 16 BorderTest() {} | 16 BorderTest() {} |
| 17 virtual ~BorderTest() {} | 17 virtual ~BorderTest() {} |
| 18 | 18 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 kViewSize - 2 * kViewInset), | 67 kViewSize - 2 * kViewInset), |
| 68 v.GetContentsBounds()); | 68 v.GetContentsBounds()); |
| 69 | 69 |
| 70 TestBorder* border = new TestBorder; | 70 TestBorder* border = new TestBorder; |
| 71 v.SetBorder(border); | 71 v.SetBorder(border); |
| 72 v.CallOnPaintWithNULLCanvas(); | 72 v.CallOnPaintWithNULLCanvas(); |
| 73 EXPECT_TRUE(border->painted()); | 73 EXPECT_TRUE(border->painted()); |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace ui | 76 } // namespace ui |
| OLD | NEW |