| 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 #ifndef CHROME_TEST_TEST_NOTIFICATION_TRACKER_H_ | 5 #ifndef CHROME_TEST_BASE_TEST_NOTIFICATION_TRACKER_H_ |
| 6 #define CHROME_TEST_TEST_NOTIFICATION_TRACKER_H_ | 6 #define CHROME_TEST_BASE_TEST_NOTIFICATION_TRACKER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "content/common/notification_details.h" | 11 #include "content/common/notification_details.h" |
| 12 #include "content/common/notification_observer.h" | 12 #include "content/common/notification_observer.h" |
| 13 #include "content/common/notification_registrar.h" | 13 #include "content/common/notification_registrar.h" |
| 14 #include "content/common/notification_source.h" | 14 #include "content/common/notification_source.h" |
| 15 | 15 |
| 16 // Provides an easy way for tests to verify that a given set of notifications | 16 // Provides an easy way for tests to verify that a given set of notifications |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 const NotificationDetails& details); | 72 const NotificationDetails& details); |
| 73 private: | 73 private: |
| 74 NotificationRegistrar registrar_; | 74 NotificationRegistrar registrar_; |
| 75 | 75 |
| 76 // Lists all received since last cleared, in the order they were received. | 76 // Lists all received since last cleared, in the order they were received. |
| 77 std::vector<Event> events_; | 77 std::vector<Event> events_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(TestNotificationTracker); | 79 DISALLOW_COPY_AND_ASSIGN(TestNotificationTracker); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 #endif // CHROME_TEST_TEST_NOTIFICATION_TRACKER_H_ | 82 #endif // CHROME_TEST_BASE_TEST_NOTIFICATION_TRACKER_H_ |
| OLD | NEW |