Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1375)

Unified Diff: chrome/test/test_notification_tracker.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/plugin/pdf_browsertest.cc ('k') | chrome/test/test_notification_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/test_notification_tracker.h
===================================================================
--- chrome/test/test_notification_tracker.h (revision 91968)
+++ chrome/test/test_notification_tracker.h (working copy)
@@ -20,9 +20,9 @@
// Records one received notification.
struct Event {
Event();
- Event(NotificationType t, NotificationSource s, NotificationDetails d);
+ Event(int t, NotificationSource s, NotificationDetails d);
- NotificationType type;
+ int type;
NotificationSource source;
NotificationDetails details;
};
@@ -34,11 +34,11 @@
virtual ~TestNotificationTracker();
// Makes this object listen for the given notification with the given source.
- void ListenFor(NotificationType type, const NotificationSource& source);
+ void ListenFor(int type, const NotificationSource& source);
// Makes this object listen for notifications of the given type coming from
// any source.
- void ListenForAll(NotificationType type);
+ void ListenForAll(int type);
// Clears the list of events.
void Reset();
@@ -52,12 +52,12 @@
// Check1AndReset(NOTIFY_A);
// <do stuff>
// Check2AndReset(NOTIFY_B, NOTIFY_C)
- bool Check1AndReset(NotificationType type);
- bool Check2AndReset(NotificationType type1,
- NotificationType type2);
- bool Check3AndReset(NotificationType type1,
- NotificationType type2,
- NotificationType type3);
+ bool Check1AndReset(int type);
+ bool Check2AndReset(int type1,
+ int type2);
+ bool Check3AndReset(int type1,
+ int type2,
+ int type3);
// Returns the number of notifications received since the last reset.
size_t size() const { return events_.size(); }
@@ -67,7 +67,7 @@
const Event& at(size_t i) const { return events_[i]; }
protected:
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details);
private:
« no previous file with comments | « chrome/test/plugin/pdf_browsertest.cc ('k') | chrome/test/test_notification_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698