OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/task_manager/task_manager.h" | 5 #include "chrome/browser/task_manager/task_manager.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/extensions/extension_browsertest.h" | 9 #include "chrome/browser/extensions/extension_browsertest.h" |
10 #include "chrome/browser/notifications/desktop_notification_service.h" | 10 #include "chrome/browser/notifications/desktop_notification_service.h" |
11 #include "chrome/browser/notifications/notification.h" | 11 #include "chrome/browser/notifications/notification.h" |
12 #include "chrome/browser/notifications/notification_test_util.h" | 12 #include "chrome/browser/notifications/notification_test_util.h" |
13 #include "chrome/browser/notifications/notification_ui_manager.h" | 13 #include "chrome/browser/notifications/notification_ui_manager.h" |
14 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" | 14 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" |
15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/ui/browser_dialogs.h" | 16 #include "chrome/browser/ui/browser_dialogs.h" |
17 #include "chrome/browser/ui/browser_window.h" | 17 #include "chrome/browser/ui/browser_window.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 notifications->Add(n1, browser()->profile()); | 75 notifications->Add(n1, browser()->profile()); |
76 TaskManagerBrowserTestUtil::WaitForWebResourceChange(2); | 76 TaskManagerBrowserTestUtil::WaitForWebResourceChange(2); |
77 notifications->Add(n2, browser()->profile()); | 77 notifications->Add(n2, browser()->profile()); |
78 TaskManagerBrowserTestUtil::WaitForWebResourceChange(3); | 78 TaskManagerBrowserTestUtil::WaitForWebResourceChange(3); |
79 notifications->CancelById(n1.notification_id()); | 79 notifications->CancelById(n1.notification_id()); |
80 TaskManagerBrowserTestUtil::WaitForWebResourceChange(2); | 80 TaskManagerBrowserTestUtil::WaitForWebResourceChange(2); |
81 notifications->CancelById(n2.notification_id()); | 81 notifications->CancelById(n2.notification_id()); |
82 TaskManagerBrowserTestUtil::WaitForWebResourceChange(1); | 82 TaskManagerBrowserTestUtil::WaitForWebResourceChange(1); |
83 } | 83 } |
OLD | NEW |