| 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/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/browser/browser.h" | |
| 14 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" | 14 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" |
| 16 #include "chrome/browser/chromeos/notifications/balloon_view.h" | 15 #include "chrome/browser/chromeos/notifications/balloon_view.h" |
| 17 #include "chrome/browser/chromeos/notifications/notification_panel.h" | 16 #include "chrome/browser/chromeos/notifications/notification_panel.h" |
| 18 #include "chrome/browser/chromeos/notifications/system_notification_factory.h" | 17 #include "chrome/browser/chromeos/notifications/system_notification_factory.h" |
| 19 #include "chrome/browser/notifications/notification_delegate.h" | 18 #include "chrome/browser/notifications/notification_delegate.h" |
| 20 #include "chrome/browser/notifications/notification_ui_manager.h" | 19 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 20 #include "chrome/browser/ui/browser.h" |
| 21 #include "chrome/common/notification_service.h" | 21 #include "chrome/common/notification_service.h" |
| 22 #include "chrome/test/in_process_browser_test.h" | 22 #include "chrome/test/in_process_browser_test.h" |
| 23 #include "chrome/test/ui_test_utils.h" | 23 #include "chrome/test/ui_test_utils.h" |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 class MockNotificationDelegate : public NotificationDelegate { | 27 class MockNotificationDelegate : public NotificationDelegate { |
| 28 public: | 28 public: |
| 29 explicit MockNotificationDelegate(const std::string& id) : id_(id) {} | 29 explicit MockNotificationDelegate(const std::string& id) : id_(id) {} |
| 30 | 30 |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 EXPECT_TRUE(collection->AddDOMUIMessageCallback( | 608 EXPECT_TRUE(collection->AddDOMUIMessageCallback( |
| 609 NewMockNotification("1"), | 609 NewMockNotification("1"), |
| 610 "test", | 610 "test", |
| 611 NewCallback( | 611 NewCallback( |
| 612 static_cast<NotificationTest*>(this), | 612 static_cast<NotificationTest*>(this), |
| 613 &NotificationTest::HandleDOMUIMessage))); | 613 &NotificationTest::HandleDOMUIMessage))); |
| 614 MessageLoop::current()->Run(); | 614 MessageLoop::current()->Run(); |
| 615 } | 615 } |
| 616 | 616 |
| 617 } // namespace chromeos | 617 } // namespace chromeos |
| OLD | NEW |