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 "base/macros.h" |
5 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "build/build_config.h" |
6 #include "ui/gfx/geometry/insets.h" | 8 #include "ui/gfx/geometry/insets.h" |
7 #include "ui/gfx/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
8 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
9 #include "ui/views/bubble/bubble_border.h" | 11 #include "ui/views/bubble/bubble_border.h" |
10 #include "ui/views/bubble/bubble_frame_view.h" | 12 #include "ui/views/bubble/bubble_frame_view.h" |
11 #include "ui/views/test/test_views.h" | 13 #include "ui/views/test/test_views.h" |
12 #include "ui/views/test/views_test_base.h" | 14 #include "ui/views/test/views_test_base.h" |
13 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
14 #include "ui/views/widget/widget_delegate.h" | 16 #include "ui/views/widget/widget_delegate.h" |
15 | 17 |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 EXPECT_EQ(0, maximum_size.height()); | 444 EXPECT_EQ(0, maximum_size.height()); |
443 #else | 445 #else |
444 // Should ignore the contents view's maximum size and use the preferred size. | 446 // Should ignore the contents view's maximum size and use the preferred size. |
445 EXPECT_EQ(kPreferredClientWidth + kExpectedBorderWidth, maximum_size.width()); | 447 EXPECT_EQ(kPreferredClientWidth + kExpectedBorderWidth, maximum_size.width()); |
446 EXPECT_EQ(kPreferredClientHeight + kExpectedBorderHeight, | 448 EXPECT_EQ(kPreferredClientHeight + kExpectedBorderHeight, |
447 maximum_size.height()); | 449 maximum_size.height()); |
448 #endif | 450 #endif |
449 } | 451 } |
450 | 452 |
451 } // namespace views | 453 } // namespace views |
OLD | NEW |