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 "content/test/test_notification_tracker.h" | 5 #include "content/test/test_notification_tracker.h" |
6 | 6 |
7 #include "content/common/notification_service.h" | 7 #include "content/public/browser/notification_service.h" |
8 #include "content/public/browser/notification_types.h" | 8 #include "content/public/browser/notification_types.h" |
9 | 9 |
10 TestNotificationTracker::Event::Event() | 10 TestNotificationTracker::Event::Event() |
11 : type(content::NOTIFICATION_ALL), | 11 : type(content::NOTIFICATION_ALL), |
12 source(NotificationService::AllSources()), | 12 source(content::NotificationService::AllSources()), |
13 details(NotificationService::NoDetails()) { | 13 details(content::NotificationService::NoDetails()) { |
14 } | 14 } |
15 TestNotificationTracker::Event::Event(int t, | 15 TestNotificationTracker::Event::Event(int t, |
16 content::NotificationSource s, | 16 content::NotificationSource s, |
17 content::NotificationDetails d) | 17 content::NotificationDetails d) |
18 : type(t), | 18 : type(t), |
19 source(s), | 19 source(s), |
20 details(d) { | 20 details(d) { |
21 } | 21 } |
22 | 22 |
23 TestNotificationTracker::TestNotificationTracker() { | 23 TestNotificationTracker::TestNotificationTracker() { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 Reset(); | 70 Reset(); |
71 return success; | 71 return success; |
72 } | 72 } |
73 | 73 |
74 void TestNotificationTracker::Observe( | 74 void TestNotificationTracker::Observe( |
75 int type, | 75 int type, |
76 const content::NotificationSource& source, | 76 const content::NotificationSource& source, |
77 const content::NotificationDetails& details) { | 77 const content::NotificationDetails& details) { |
78 events_.push_back(Event(type, source, details)); | 78 events_.push_back(Event(type, source, details)); |
79 } | 79 } |
OLD | NEW |