OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/x11_util.h" | 5 #include "app/x11_util.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
7 #include "base/ref_counted.h" | 7 #include "base/ref_counted.h" |
| 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
9 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" | 12 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" |
11 #include "chrome/browser/chromeos/notifications/balloon_view.h" | 13 #include "chrome/browser/chromeos/notifications/balloon_view.h" |
12 #include "chrome/browser/chromeos/notifications/notification_panel.h" | 14 #include "chrome/browser/chromeos/notifications/notification_panel.h" |
13 #include "chrome/browser/chromeos/notifications/system_notification_factory.h" | 15 #include "chrome/browser/chromeos/notifications/system_notification_factory.h" |
14 #include "chrome/browser/notifications/notification_delegate.h" | 16 #include "chrome/browser/notifications/notification_delegate.h" |
15 #include "chrome/browser/notifications/notification_ui_manager.h" | 17 #include "chrome/browser/notifications/notification_ui_manager.h" |
16 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
17 #include "chrome/test/in_process_browser_test.h" | 19 #include "chrome/test/in_process_browser_test.h" |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 EXPECT_EQ(1, tester->GetStickyNotificationCount()); | 542 EXPECT_EQ(1, tester->GetStickyNotificationCount()); |
541 | 543 |
542 // Hide | 544 // Hide |
543 panel->Hide(); | 545 panel->Hide(); |
544 ui_test_utils::RunAllPendingInMessageLoop(); | 546 ui_test_utils::RunAllPendingInMessageLoop(); |
545 EXPECT_EQ(1, tester->GetNotificationCount()); | 547 EXPECT_EQ(1, tester->GetNotificationCount()); |
546 EXPECT_EQ(1, tester->GetStickyNotificationCount()); | 548 EXPECT_EQ(1, tester->GetStickyNotificationCount()); |
547 } | 549 } |
548 | 550 |
549 } // namespace chromeos | 551 } // namespace chromeos |
OLD | NEW |