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/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "chrome/browser/ui/panels/old_base_panel_browser_test.h" | 6 #include "chrome/browser/ui/panels/old_base_panel_browser_test.h" |
7 #include "chrome/browser/ui/panels/docked_panel_strip.h" | 7 #include "chrome/browser/ui/panels/docked_panel_strip.h" |
8 #include "chrome/browser/ui/panels/panel.h" | 8 #include "chrome/browser/ui/panels/panel.h" |
9 #include "chrome/browser/ui/panels/panel_manager.h" | 9 #include "chrome/browser/ui/panels/panel_manager.h" |
10 #include "chrome/browser/ui/panels/test_panel_mouse_watcher.h" | |
11 #include "chrome/common/chrome_notification_types.h" | 10 #include "chrome/common/chrome_notification_types.h" |
12 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
13 #include "content/public/test/test_utils.h" | 12 #include "content/public/test/test_utils.h" |
14 | 13 |
15 class OldDockedPanelBrowserTest : public OldBasePanelBrowserTest { | 14 class OldDockedPanelBrowserTest : public OldBasePanelBrowserTest { |
16 public: | 15 public: |
17 virtual void SetUpOnMainThread() OVERRIDE { | 16 virtual void SetUpOnMainThread() OVERRIDE { |
18 OldBasePanelBrowserTest::SetUpOnMainThread(); | 17 OldBasePanelBrowserTest::SetUpOnMainThread(); |
19 | 18 |
20 // All the tests here assume using mocked 800x600 screen area for the | 19 // All the tests here assume using mocked 800x600 screen area for the |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // Wait for all processing to finish. | 271 // Wait for all processing to finish. |
273 MessageLoopForUI::current()->RunAllPending(); | 272 MessageLoopForUI::current()->RunAllPending(); |
274 | 273 |
275 // We should not have squeezing any more; all panels should be at full width. | 274 // We should not have squeezing any more; all panels should be at full width. |
276 EXPECT_EQ(panel1->GetBounds().width(), panel1->GetRestoredBounds().width()); | 275 EXPECT_EQ(panel1->GetBounds().width(), panel1->GetRestoredBounds().width()); |
277 EXPECT_EQ(panel4->GetBounds().width(), panel4->GetRestoredBounds().width()); | 276 EXPECT_EQ(panel4->GetBounds().width(), panel4->GetRestoredBounds().width()); |
278 EXPECT_EQ(panel6->GetBounds().width(), panel6->GetRestoredBounds().width()); | 277 EXPECT_EQ(panel6->GetBounds().width(), panel6->GetRestoredBounds().width()); |
279 | 278 |
280 panel_manager->CloseAll(); | 279 panel_manager->CloseAll(); |
281 } | 280 } |
OLD | NEW |