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 "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/download/download_service.h" | 9 #include "chrome/browser/download/download_service.h" |
10 #include "chrome/browser/download/download_service_factory.h" | 10 #include "chrome/browser/download/download_service_factory.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "chrome/browser/ui/panels/panel_manager.h" | 29 #include "chrome/browser/ui/panels/panel_manager.h" |
30 #include "chrome/browser/ui/panels/panel_settings_menu_model.h" | 30 #include "chrome/browser/ui/panels/panel_settings_menu_model.h" |
31 #include "chrome/browser/web_applications/web_app.h" | 31 #include "chrome/browser/web_applications/web_app.h" |
32 #include "chrome/common/chrome_notification_types.h" | 32 #include "chrome/common/chrome_notification_types.h" |
33 #include "chrome/common/pref_names.h" | 33 #include "chrome/common/pref_names.h" |
34 #include "chrome/common/url_constants.h" | 34 #include "chrome/common/url_constants.h" |
35 #include "chrome/test/base/ui_test_utils.h" | 35 #include "chrome/test/base/ui_test_utils.h" |
36 #include "content/browser/download/download_manager.h" | 36 #include "content/browser/download/download_manager.h" |
37 #include "content/browser/net/url_request_mock_http_job.h" | 37 #include "content/browser/net/url_request_mock_http_job.h" |
38 #include "content/browser/tab_contents/tab_contents.h" | 38 #include "content/browser/tab_contents/tab_contents.h" |
39 #include "content/common/desktop_notification_messages.h" | |
40 #include "content/public/browser/notification_service.h" | 39 #include "content/public/browser/notification_service.h" |
| 40 #include "content/public/common/show_desktop_notification_params.h" |
41 #include "content/public/common/url_constants.h" | 41 #include "content/public/common/url_constants.h" |
42 #include "net/base/net_util.h" | 42 #include "net/base/net_util.h" |
43 #include "testing/gtest/include/gtest/gtest.h" | 43 #include "testing/gtest/include/gtest/gtest.h" |
44 #include "ui/gfx/screen.h" | 44 #include "ui/gfx/screen.h" |
45 | 45 |
46 using content::BrowserThread; | 46 using content::BrowserThread; |
47 | 47 |
48 class PanelBrowserTest : public BasePanelBrowserTest { | 48 class PanelBrowserTest : public BasePanelBrowserTest { |
49 public: | 49 public: |
50 PanelBrowserTest() : BasePanelBrowserTest() { | 50 PanelBrowserTest() : BasePanelBrowserTest() { |
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1832 // position when tall panel brings up its titlebar. | 1832 // position when tall panel brings up its titlebar. |
1833 CloseWindowAndWait(panel1->browser()); | 1833 CloseWindowAndWait(panel1->browser()); |
1834 EXPECT_EQ(balloon_bottom_after_tall_panel_titlebar_up, | 1834 EXPECT_EQ(balloon_bottom_after_tall_panel_titlebar_up, |
1835 GetBalloonBottomPosition(balloon)); | 1835 GetBalloonBottomPosition(balloon)); |
1836 | 1836 |
1837 // Closing the remaining tall panel should move the notification balloon back | 1837 // Closing the remaining tall panel should move the notification balloon back |
1838 // to its original position. | 1838 // to its original position. |
1839 CloseWindowAndWait(panel2->browser()); | 1839 CloseWindowAndWait(panel2->browser()); |
1840 EXPECT_EQ(original_balloon_bottom, GetBalloonBottomPosition(balloon)); | 1840 EXPECT_EQ(original_balloon_bottom, GetBalloonBottomPosition(balloon)); |
1841 } | 1841 } |
OLD | NEW |