| OLD | NEW |
| 1 | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 3 // 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 |
| 4 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 5 | 4 |
| 6 #include "base/command_line.h" | 5 #include "base/command_line.h" |
| 7 #include "base/file_path.h" | 6 #include "base/file_path.h" |
| 8 #include "chrome/browser/extensions/extension_browsertest.h" | 7 #include "chrome/browser/extensions/extension_browsertest.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/browser/ui/browser_init.h" | 11 #include "chrome/browser/ui/browser_init.h" |
| 13 #include "chrome/browser/ui/browser_list.h" | 12 #include "chrome/browser/ui/browser_list.h" |
| 14 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
| 15 #include "chrome/browser/ui/panels/panel_manager.h" | 14 #include "chrome/browser/ui/panels/panel_manager.h" |
| 15 #include "chrome/common/chrome_notification_types.h" |
| 16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
| 17 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
| 18 #include "chrome/test/base/ui_test_utils.h" | 18 #include "chrome/test/base/ui_test_utils.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 20 |
| 21 #if defined(OS_MACOSX) | 21 #if defined(OS_MACOSX) |
| 22 #include "base/mac/scoped_nsautorelease_pool.h" | 22 #include "base/mac/scoped_nsautorelease_pool.h" |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 class PanelAppBrowserTest : public ExtensionBrowserTest { | 25 class PanelAppBrowserTest : public ExtensionBrowserTest { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 EXPECT_TRUE(new_browser->is_type_panel()); | 100 EXPECT_TRUE(new_browser->is_type_panel()); |
| 101 | 101 |
| 102 // Now also check that PanelManager has one new Panel under management. | 102 // Now also check that PanelManager has one new Panel under management. |
| 103 EXPECT_EQ(1, panel_manager->num_panels()); | 103 EXPECT_EQ(1, panel_manager->num_panels()); |
| 104 | 104 |
| 105 CloseWindowAndWait(new_browser); | 105 CloseWindowAndWait(new_browser); |
| 106 | 106 |
| 107 EXPECT_EQ(0, panel_manager->num_panels()); | 107 EXPECT_EQ(0, panel_manager->num_panels()); |
| 108 EXPECT_EQ(1u, BrowserList::size()); | 108 EXPECT_EQ(1u, BrowserList::size()); |
| 109 } | 109 } |
| OLD | NEW |