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

Unified Diff: chrome/browser/net/gaia/token_service_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/net/gaia/token_service_unittest.h ('k') | chrome/browser/net/net_pref_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/gaia/token_service_unittest.cc
===================================================================
--- chrome/browser/net/gaia/token_service_unittest.cc (revision 91968)
+++ chrome/browser/net/gaia/token_service_unittest.cc (working copy)
@@ -9,6 +9,7 @@
#include "base/command_line.h"
#include "base/synchronization/waitable_event.h"
#include "chrome/browser/password_manager/encryptor.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/net/gaia/gaia_auth_fetcher_unittest.h"
#include "chrome/common/net/gaia/gaia_constants.h"
@@ -18,11 +19,11 @@
TokenAvailableTracker::~TokenAvailableTracker() {}
-void TokenAvailableTracker::Observe(NotificationType type,
+void TokenAvailableTracker::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
TestNotificationTracker::Observe(type, source, details);
- if (type == NotificationType::TOKEN_AVAILABLE) {
+ if (type == chrome::NOTIFICATION_TOKEN_AVAILABLE) {
Details<const TokenService::TokenAvailableDetails> full = details;
details_ = *full.ptr();
}
@@ -32,11 +33,11 @@
TokenFailedTracker::~TokenFailedTracker() {}
-void TokenFailedTracker::Observe(NotificationType type,
+void TokenFailedTracker::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
TestNotificationTracker::Observe(type, source, details);
- if (type == NotificationType::TOKEN_REQUEST_FAILED) {
+ if (type == chrome::NOTIFICATION_TOKEN_REQUEST_FAILED) {
Details<const TokenService::TokenRequestFailedDetails> full = details;
details_ = *full.ptr();
}
@@ -64,9 +65,9 @@
profile_->CreateWebDataService(false);
WaitForDBLoadCompletion();
- success_tracker_.ListenFor(NotificationType::TOKEN_AVAILABLE,
+ success_tracker_.ListenFor(chrome::NOTIFICATION_TOKEN_AVAILABLE,
Source<TokenService>(&service_));
- failure_tracker_.ListenFor(NotificationType::TOKEN_REQUEST_FAILED,
+ failure_tracker_.ListenFor(chrome::NOTIFICATION_TOKEN_REQUEST_FAILED,
Source<TokenService>(&service_));
service_.Initialize("test", profile_.get());
« no previous file with comments | « chrome/browser/net/gaia/token_service_unittest.h ('k') | chrome/browser/net/net_pref_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698