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

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
Index: chrome/browser/net/gaia/token_service_unittest.cc
===================================================================
--- chrome/browser/net/gaia/token_service_unittest.cc (revision 91771)
+++ 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"
@@ -22,7 +23,7 @@
const NotificationSource& source,
const NotificationDetails& details) {
TestNotificationTracker::Observe(type, source, details);
- if (type == NotificationType::TOKEN_AVAILABLE) {
+ if (type == chrome::TOKEN_AVAILABLE) {
Details<const TokenService::TokenAvailableDetails> full = details;
details_ = *full.ptr();
}
@@ -36,7 +37,7 @@
const NotificationSource& source,
const NotificationDetails& details) {
TestNotificationTracker::Observe(type, source, details);
- if (type == NotificationType::TOKEN_REQUEST_FAILED) {
+ if (type == chrome::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::TOKEN_AVAILABLE,
Source<TokenService>(&service_));
- failure_tracker_.ListenFor(NotificationType::TOKEN_REQUEST_FAILED,
+ failure_tracker_.ListenFor(chrome::TOKEN_REQUEST_FAILED,
Source<TokenService>(&service_));
service_.Initialize("test", profile_.get());

Powered by Google App Engine
This is Rietveld 408576698