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

Unified Diff: chrome/browser/notifications/extensions/extension_welcome_notification_unittest.cc

Issue 580093003: Factor Google Now welcome notifications out of DesktopNotificationService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/notifications/extensions/extension_welcome_notification_unittest.cc
diff --git a/chrome/browser/notifications/extension_welcome_notification_unittest.cc b/chrome/browser/notifications/extensions/extension_welcome_notification_unittest.cc
similarity index 98%
rename from chrome/browser/notifications/extension_welcome_notification_unittest.cc
rename to chrome/browser/notifications/extensions/extension_welcome_notification_unittest.cc
index 6e037ad5b94118c6cf6d09e727513718fdc75232..5e50bfe718a2c5947656a4272622b7e6983893f5 100644
--- a/chrome/browser/notifications/extension_welcome_notification_unittest.cc
+++ b/chrome/browser/notifications/extensions/extension_welcome_notification_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/notifications/extension_welcome_notification.h"
+#include "chrome/browser/notifications/extensions/extension_welcome_notification.h"
#include <string>
@@ -23,8 +23,6 @@
#include "ui/message_center/fake_message_center.h"
#include "ui/message_center/notification.h"
-const char kChromeNowExtensionID[] = "pafkbggdmjlpgkdkcbjmhmfcdpncadgh";
-
class MockMessageCenter : public message_center::FakeMessageCenter {
public:
MockMessageCenter()
@@ -140,8 +138,8 @@ class ExtensionWelcomeNotificationTest : public testing::Test {
new base::ThreadTaskRunnerHandle(task_runner_));
profile_.reset(new TestingProfile());
delegate_ = new WelcomeNotificationDelegate();
- welcome_notification_ = ExtensionWelcomeNotification::Create(
- kChromeNowExtensionID, profile_.get(), delegate_);
+ welcome_notification_ = ExtensionWelcomeNotification::Create(profile_.get(),
+ delegate_);
}
virtual void TearDown() {
@@ -166,8 +164,9 @@ class ExtensionWelcomeNotificationTest : public testing::Test {
void ShowChromeNowNotification() const {
ShowNotification(
"ChromeNowNotification",
- message_center::NotifierId(message_center::NotifierId::APPLICATION,
- kChromeNowExtensionID));
+ message_center::NotifierId(
+ message_center::NotifierId::APPLICATION,
+ ExtensionWelcomeNotification::kChromeNowExtensionID));
}
void ShowRegularNotification() const {

Powered by Google App Engine
This is Rietveld 408576698