| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ash/wm/caption_buttons/frame_caption_button_container_view.h" | 5 #include "ash/wm/caption_buttons/frame_caption_button_container_view.h" |
| 6 | 6 |
| 7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
| 8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
| 9 #include "ash/wm/caption_buttons/frame_caption_button.h" | 9 #include "ash/wm/caption_buttons/frame_caption_button.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "grit/ash_resources.h" | 11 #include "grit/ash_resources.h" |
| 12 #include "ui/aura/root_window.h" | 12 #include "ui/aura/window_event_dispatcher.h" |
| 13 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
| 14 #include "ui/views/border.h" | 14 #include "ui/views/border.h" |
| 15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
| 16 #include "ui/views/widget/widget_delegate.h" | 16 #include "ui/views/widget/widget_delegate.h" |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 class TestWidgetDelegate : public views::WidgetDelegateView { | 22 class TestWidgetDelegate : public views::WidgetDelegateView { |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 container.Layout(); | 267 container.Layout(); |
| 268 FrameCaptionButtonContainerView::TestApi t(&container); | 268 FrameCaptionButtonContainerView::TestApi t(&container); |
| 269 EXPECT_TRUE(t.minimize_button()->visible()); | 269 EXPECT_TRUE(t.minimize_button()->visible()); |
| 270 EXPECT_TRUE(t.size_button()->visible()); | 270 EXPECT_TRUE(t.size_button()->visible()); |
| 271 EXPECT_TRUE(t.close_button()->visible()); | 271 EXPECT_TRUE(t.close_button()->visible()); |
| 272 EXPECT_TRUE(CheckButtonsAtEdges( | 272 EXPECT_TRUE(CheckButtonsAtEdges( |
| 273 &container, *t.minimize_button(), *t.close_button())); | 273 &container, *t.minimize_button(), *t.close_button())); |
| 274 } | 274 } |
| 275 | 275 |
| 276 } // namespace ash | 276 } // namespace ash |
| OLD | NEW |