OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/download/notification/download_item_notification.h" | 5 #include "chrome/browser/download/notification/download_item_notification.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
9 #include "base/test/test_simple_task_runner.h" | 12 #include "base/test/test_simple_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
11 #include "chrome/browser/download/notification/download_notification_manager.h" | 14 #include "chrome/browser/download/notification/download_notification_manager.h" |
12 #include "chrome/browser/notifications/notification_test_util.h" | 15 #include "chrome/browser/notifications/notification_test_util.h" |
13 #include "chrome/browser/notifications/platform_notification_service_impl.h" | 16 #include "chrome/browser/notifications/platform_notification_service_impl.h" |
14 #include "chrome/test/base/testing_browser_process.h" | 17 #include "chrome/test/base/testing_browser_process.h" |
15 #include "chrome/test/base/testing_profile.h" | 18 #include "chrome/test/base/testing_profile.h" |
16 #include "chrome/test/base/testing_profile_manager.h" | 19 #include "chrome/test/base/testing_profile_manager.h" |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 EXPECT_CALL(*download_item_, GetState()) | 294 EXPECT_CALL(*download_item_, GetState()) |
292 .WillRepeatedly(Return(content::DownloadItem::COMPLETE)); | 295 .WillRepeatedly(Return(content::DownloadItem::COMPLETE)); |
293 EXPECT_CALL(*download_item_, IsDone()).WillRepeatedly(Return(true)); | 296 EXPECT_CALL(*download_item_, IsDone()).WillRepeatedly(Return(true)); |
294 download_item_->NotifyObserversDownloadUpdated(); | 297 download_item_->NotifyObserversDownloadUpdated(); |
295 | 298 |
296 // Priority is updated back to normal. | 299 // Priority is updated back to normal. |
297 EXPECT_EQ(message_center::DEFAULT_PRIORITY, notification()->priority()); | 300 EXPECT_EQ(message_center::DEFAULT_PRIORITY, notification()->priority()); |
298 } | 301 } |
299 | 302 |
300 } // namespace test | 303 } // namespace test |
OLD | NEW |