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