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