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

Unified Diff: chrome/browser/prefs/pref_notifier_impl_unittest.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/browser/prefs/pref_notifier_impl.cc ('k') | chrome/browser/prefs/pref_observer_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/pref_notifier_impl_unittest.cc
===================================================================
--- chrome/browser/prefs/pref_notifier_impl_unittest.cc (revision 91968)
+++ chrome/browser/prefs/pref_notifier_impl_unittest.cc (working copy)
@@ -6,6 +6,7 @@
#include "chrome/browser/prefs/pref_observer_mock.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prefs/pref_value_store.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/test/testing_pref_service.h"
#include "content/common/notification_observer_mock.h"
#include "content/common/notification_registrar.h"
@@ -80,11 +81,10 @@
MockPrefNotifier notifier(&pref_service_);
NotificationObserverMock observer;
NotificationRegistrar registrar;
- registrar.Add(&observer, NotificationType::PREF_INITIALIZATION_COMPLETED,
+ registrar.Add(&observer, chrome::NOTIFICATION_PREF_INITIALIZATION_COMPLETED,
Source<PrefService>(&pref_service_));
EXPECT_CALL(observer, Observe(
- Field(&NotificationType::value,
- NotificationType::PREF_INITIALIZATION_COMPLETED),
+ int(chrome::NOTIFICATION_PREF_INITIALIZATION_COMPLETED),
Source<PrefService>(&pref_service_),
Property(&Details<bool>::ptr, testing::Pointee(true))));
notifier.OnInitializationCompleted(true);
« no previous file with comments | « chrome/browser/prefs/pref_notifier_impl.cc ('k') | chrome/browser/prefs/pref_observer_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698