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 "build/build_config.h" |
5 #include "chrome/browser/ui/panels/base_panel_browser_test.h" | 6 #include "chrome/browser/ui/panels/base_panel_browser_test.h" |
6 #include "chrome/browser/ui/panels/panel.h" | 7 #include "chrome/browser/ui/panels/panel.h" |
7 #include "chrome/browser/ui/panels/panel_constants.h" | 8 #include "chrome/browser/ui/panels/panel_constants.h" |
8 #include "chrome/browser/ui/views/panels/panel_frame_view.h" | 9 #include "chrome/browser/ui/views/panels/panel_frame_view.h" |
9 #include "chrome/browser/ui/views/panels/panel_view.h" | 10 #include "chrome/browser/ui/views/panels/panel_view.h" |
10 #include "chrome/browser/ui/views/tab_icon_view.h" | 11 #include "chrome/browser/ui/views/tab_icon_view.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "ui/views/controls/button/image_button.h" | 13 #include "ui/views/controls/button/image_button.h" |
13 #include "ui/views/controls/button/menu_button.h" | 14 #include "ui/views/controls/button/menu_button.h" |
14 #include "ui/views/controls/image_view.h" | 15 #include "ui/views/controls/image_view.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 Panel* panel = CreatePanelWithBounds("PanelTest", bounds); | 154 Panel* panel = CreatePanelWithBounds("PanelTest", bounds); |
154 | 155 |
155 // Change panel to minimized and check its height. | 156 // Change panel to minimized and check its height. |
156 panel->SetExpansionState(Panel::MINIMIZED); | 157 panel->SetExpansionState(Panel::MINIMIZED); |
157 WaitForBoundsAnimationFinished(panel); | 158 WaitForBoundsAnimationFinished(panel); |
158 EXPECT_EQ(panel::kMinimizedPanelHeight, panel->GetBounds().height()); | 159 EXPECT_EQ(panel::kMinimizedPanelHeight, panel->GetBounds().height()); |
159 EXPECT_EQ(0, GetPanelView(panel)->height()); // client area height. | 160 EXPECT_EQ(0, GetPanelView(panel)->height()); // client area height. |
160 | 161 |
161 panel->Close(); | 162 panel->Close(); |
162 } | 163 } |
OLD | NEW |