| 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/base_panel_browser_test.h" | 6 #include "chrome/browser/ui/panels/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 // Refactor has only been done for Win and Mac panels so far. | 14 // Refactor has only been done for Win and Mac panels so far. |
| 16 #if defined(OS_WIN) || defined(OS_MACOSX) | 15 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 17 | 16 |
| 18 class DockedPanelBrowserTest : public BasePanelBrowserTest { | 17 class DockedPanelBrowserTest : public BasePanelBrowserTest { |
| 19 public: | 18 public: |
| 20 virtual void SetUpOnMainThread() OVERRIDE { | 19 virtual void SetUpOnMainThread() OVERRIDE { |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 263 |
| 265 // We should not have squeezing any more; all panels should be at full width. | 264 // We should not have squeezing any more; all panels should be at full width. |
| 266 EXPECT_EQ(panel1->GetBounds().width(), panel1->GetRestoredBounds().width()); | 265 EXPECT_EQ(panel1->GetBounds().width(), panel1->GetRestoredBounds().width()); |
| 267 EXPECT_EQ(panel4->GetBounds().width(), panel4->GetRestoredBounds().width()); | 266 EXPECT_EQ(panel4->GetBounds().width(), panel4->GetRestoredBounds().width()); |
| 268 EXPECT_EQ(panel6->GetBounds().width(), panel6->GetRestoredBounds().width()); | 267 EXPECT_EQ(panel6->GetBounds().width(), panel6->GetRestoredBounds().width()); |
| 269 | 268 |
| 270 panel_manager->CloseAll(); | 269 panel_manager->CloseAll(); |
| 271 } | 270 } |
| 272 | 271 |
| 273 #endif // OS_WIN || OS_MACOSX | 272 #endif // OS_WIN || OS_MACOSX |
| OLD | NEW |