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

Unified Diff: chrome/test/test_notification_tracker.cc

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/test_notification_tracker.h ('k') | chrome/test/test_tab_strip_model_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/test_notification_tracker.cc
===================================================================
--- chrome/test/test_notification_tracker.cc (revision 91968)
+++ chrome/test/test_notification_tracker.cc (working copy)
@@ -7,11 +7,11 @@
#include "content/common/notification_service.h"
TestNotificationTracker::Event::Event()
- : type(NotificationType::ALL),
+ : type(content::NOTIFICATION_ALL),
source(NotificationService::AllSources()),
details(NotificationService::NoDetails()) {
}
-TestNotificationTracker::Event::Event(NotificationType t,
+TestNotificationTracker::Event::Event(int t,
NotificationSource s,
NotificationDetails d)
: type(t),
@@ -25,7 +25,7 @@
TestNotificationTracker::~TestNotificationTracker() {
}
-void TestNotificationTracker::ListenFor(NotificationType type,
+void TestNotificationTracker::ListenFor(int type,
const NotificationSource& source) {
registrar_.Add(this, type, source);
}
@@ -34,7 +34,7 @@
events_.clear();
}
-bool TestNotificationTracker::Check1AndReset(NotificationType type) {
+bool TestNotificationTracker::Check1AndReset(int type) {
if (size() != 1) {
Reset();
return false;
@@ -44,8 +44,8 @@
return success;
}
-bool TestNotificationTracker::Check2AndReset(NotificationType type1,
- NotificationType type2) {
+bool TestNotificationTracker::Check2AndReset(int type1,
+ int type2) {
if (size() != 2) {
Reset();
return false;
@@ -55,9 +55,9 @@
return success;
}
-bool TestNotificationTracker::Check3AndReset(NotificationType type1,
- NotificationType type2,
- NotificationType type3) {
+bool TestNotificationTracker::Check3AndReset(int type1,
+ int type2,
+ int type3) {
if (size() != 3) {
Reset();
return false;
@@ -69,7 +69,7 @@
return success;
}
-void TestNotificationTracker::Observe(NotificationType type,
+void TestNotificationTracker::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
events_.push_back(Event(type, source, details));
« no previous file with comments | « chrome/test/test_notification_tracker.h ('k') | chrome/test/test_tab_strip_model_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698