| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/string_number_conversions.h" | 6 #include "base/string_number_conversions.h" |
| 7 #include "chrome/browser/download/download_service.h" | 7 #include "chrome/browser/download/download_service.h" |
| 8 #include "chrome/browser/download/download_service_factory.h" | 8 #include "chrome/browser/download/download_service_factory.h" |
| 9 #include "chrome/browser/net/url_request_mock_util.h" | 9 #include "chrome/browser/net/url_request_mock_util.h" |
| 10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/ui/browser_list.h" | 12 #include "chrome/browser/ui/browser_list.h" |
| 13 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
| 14 #include "chrome/browser/ui/find_bar/find_bar.h" | 14 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 15 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 15 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 16 #include "chrome/browser/ui/panels/base_panel_browser_test.h" | 16 #include "chrome/browser/ui/panels/base_panel_browser_test.h" |
| 17 #include "chrome/browser/ui/panels/native_panel.h" | 17 #include "chrome/browser/ui/panels/native_panel.h" |
| 18 #include "chrome/browser/ui/panels/panel.h" | 18 #include "chrome/browser/ui/panels/panel.h" |
| 19 #include "chrome/browser/ui/panels/panel_manager.h" | 19 #include "chrome/browser/ui/panels/panel_manager.h" |
| 20 #include "chrome/browser/ui/panels/panel_settings_menu_model.h" | 20 #include "chrome/browser/ui/panels/panel_settings_menu_model.h" |
| 21 #include "chrome/browser/web_applications/web_app.h" | 21 #include "chrome/browser/web_applications/web_app.h" |
| 22 #include "chrome/common/chrome_notification_types.h" | 22 #include "chrome/common/chrome_notification_types.h" |
| 23 #include "chrome/common/pref_names.h" | 23 #include "chrome/common/pref_names.h" |
| 24 #include "chrome/test/base/ui_test_utils.h" | 24 #include "chrome/test/base/ui_test_utils.h" |
| 25 #include "content/browser/download/download_manager.h" | 25 #include "content/browser/download/download_manager.h" |
| 26 #include "content/browser/net/url_request_mock_http_job.h" | 26 #include "content/browser/net/url_request_mock_http_job.h" |
| 27 #include "content/browser/tab_contents/tab_contents.h" | 27 #include "content/browser/tab_contents/tab_contents.h" |
| 28 #include "content/common/url_constants.h" | 28 #include "content/public/common/url_constants.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 30 | 30 |
| 31 class PanelBrowserTest : public BasePanelBrowserTest { | 31 class PanelBrowserTest : public BasePanelBrowserTest { |
| 32 public: | 32 public: |
| 33 PanelBrowserTest() : BasePanelBrowserTest() { | 33 PanelBrowserTest() : BasePanelBrowserTest() { |
| 34 } | 34 } |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 void CloseWindowAndWait(Browser* browser) { | 37 void CloseWindowAndWait(Browser* browser) { |
| 38 // Closing a browser window may involve several async tasks. Need to use | 38 // Closing a browser window may involve several async tasks. Need to use |
| (...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 EXPECT_EQ(1, tabbed_browser->tab_count()); | 1300 EXPECT_EQ(1, tabbed_browser->tab_count()); |
| 1301 ASSERT_TRUE(tabbed_browser->window()->IsDownloadShelfVisible()); | 1301 ASSERT_TRUE(tabbed_browser->window()->IsDownloadShelfVisible()); |
| 1302 tabbed_browser->CloseWindow(); | 1302 tabbed_browser->CloseWindow(); |
| 1303 #endif | 1303 #endif |
| 1304 | 1304 |
| 1305 EXPECT_EQ(1, panel_browser->tab_count()); | 1305 EXPECT_EQ(1, panel_browser->tab_count()); |
| 1306 ASSERT_FALSE(panel_browser->window()->IsDownloadShelfVisible()); | 1306 ASSERT_FALSE(panel_browser->window()->IsDownloadShelfVisible()); |
| 1307 | 1307 |
| 1308 panel_browser->CloseWindow(); | 1308 panel_browser->CloseWindow(); |
| 1309 } | 1309 } |
| OLD | NEW |