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 "chrome/test/test_notification_tracker.h" | 5 #include "chrome/test/base/test_notification_tracker.h" |
6 | 6 |
7 #include "content/common/notification_service.h" | 7 #include "content/common/notification_service.h" |
8 | 8 |
9 TestNotificationTracker::Event::Event() | 9 TestNotificationTracker::Event::Event() |
10 : type(content::NOTIFICATION_ALL), | 10 : type(content::NOTIFICATION_ALL), |
11 source(NotificationService::AllSources()), | 11 source(NotificationService::AllSources()), |
12 details(NotificationService::NoDetails()) { | 12 details(NotificationService::NoDetails()) { |
13 } | 13 } |
14 TestNotificationTracker::Event::Event(int t, | 14 TestNotificationTracker::Event::Event(int t, |
15 NotificationSource s, | 15 NotificationSource s, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 events_[2].type == type3; | 67 events_[2].type == type3; |
68 Reset(); | 68 Reset(); |
69 return success; | 69 return success; |
70 } | 70 } |
71 | 71 |
72 void TestNotificationTracker::Observe(int type, | 72 void TestNotificationTracker::Observe(int type, |
73 const NotificationSource& source, | 73 const NotificationSource& source, |
74 const NotificationDetails& details) { | 74 const NotificationDetails& details) { |
75 events_.push_back(Event(type, source, details)); | 75 events_.push_back(Event(type, source, details)); |
76 } | 76 } |
OLD | NEW |