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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "chrome/browser/download/download_manager.h" | 6 #include "chrome/browser/download/download_manager.h" |
7 #include "chrome/browser/extensions/extension_service.h" | 7 #include "chrome/browser/extensions/extension_service.h" |
8 #include "chrome/browser/prefs/pref_service.h" | 8 #include "chrome/browser/prefs/pref_service.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/browser/ui/browser_list.h" | 11 #include "chrome/browser/ui/browser_list.h" |
12 #include "chrome/browser/ui/browser_window.h" | 12 #include "chrome/browser/ui/browser_window.h" |
13 #include "chrome/browser/ui/panels/panel.h" | 13 #include "chrome/browser/ui/panels/panel.h" |
14 #include "chrome/browser/ui/panels/panel_manager.h" | 14 #include "chrome/browser/ui/panels/panel_manager.h" |
15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
16 #include "chrome/browser/web_applications/web_app.h" | 16 #include "chrome/browser/web_applications/web_app.h" |
17 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/extensions/extension.h" | 19 #include "chrome/common/extensions/extension.h" |
20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
21 #include "chrome/test/in_process_browser_test.h" | 21 #include "chrome/test/base/in_process_browser_test.h" |
22 #include "chrome/test/ui_test_utils.h" | 22 #include "chrome/test/base/ui_test_utils.h" |
23 #include "content/browser/net/url_request_mock_http_job.h" | 23 #include "content/browser/net/url_request_mock_http_job.h" |
24 #include "content/browser/tab_contents/test_tab_contents.h" | 24 #include "content/browser/tab_contents/test_tab_contents.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 class PanelBrowserTest : public InProcessBrowserTest { | 27 class PanelBrowserTest : public InProcessBrowserTest { |
28 public: | 28 public: |
29 PanelBrowserTest() : InProcessBrowserTest() { } | 29 PanelBrowserTest() : InProcessBrowserTest() { } |
30 | 30 |
31 virtual void SetUpCommandLine(CommandLine* command_line) { | 31 virtual void SetUpCommandLine(CommandLine* command_line) { |
32 command_line->AppendSwitch(switches::kEnablePanels); | 32 command_line->AppendSwitch(switches::kEnablePanels); |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 EXPECT_EQ(1, tabbed_browser->tab_count()); | 327 EXPECT_EQ(1, tabbed_browser->tab_count()); |
328 ASSERT_TRUE(tabbed_browser->window()->IsDownloadShelfVisible()); | 328 ASSERT_TRUE(tabbed_browser->window()->IsDownloadShelfVisible()); |
329 tabbed_browser->CloseWindow(); | 329 tabbed_browser->CloseWindow(); |
330 #endif | 330 #endif |
331 | 331 |
332 EXPECT_EQ(1, panel_browser->tab_count()); | 332 EXPECT_EQ(1, panel_browser->tab_count()); |
333 ASSERT_FALSE(panel_browser->window()->IsDownloadShelfVisible()); | 333 ASSERT_FALSE(panel_browser->window()->IsDownloadShelfVisible()); |
334 | 334 |
335 panel_browser->CloseWindow(); | 335 panel_browser->CloseWindow(); |
336 } | 336 } |
OLD | NEW |