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

Side by Side Diff: chrome/browser/notifications/notification_test_util.h

Issue 780363003: Delete deprecated synced notifications code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/notifications/notification.h" 11 #include "chrome/browser/notifications/notification.h"
12 #include "chrome/browser/notifications/notification_object_proxy.h" 12 #include "chrome/browser/notifications/notification_object_proxy.h"
13 #include "chrome/browser/notifications/notification_ui_manager.h" 13 #include "chrome/browser/notifications/notification_ui_manager.h"
14 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h"
15 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
16 #include "ui/gfx/size.h" 15 #include "ui/gfx/size.h"
17 16
18 // NotificationDelegate which does nothing, useful for testing when 17 // NotificationDelegate which does nothing, useful for testing when
19 // the notification events are not important. 18 // the notification events are not important.
20 class MockNotificationDelegate : public NotificationDelegate { 19 class MockNotificationDelegate : public NotificationDelegate {
21 public: 20 public:
22 explicit MockNotificationDelegate(const std::string& id); 21 explicit MockNotificationDelegate(const std::string& id);
23 22
24 // NotificationDelegate interface. 23 // NotificationDelegate interface.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 DISALLOW_COPY_AND_ASSIGN(StubNotificationUIManager); 117 DISALLOW_COPY_AND_ASSIGN(StubNotificationUIManager);
119 Notification notification_; 118 Notification notification_;
120 Profile* profile_; 119 Profile* profile_;
121 std::string dismissed_id_; 120 std::string dismissed_id_;
122 GURL welcome_origin_; 121 GURL welcome_origin_;
123 bool welcomed_; 122 bool welcomed_;
124 size_t added_notifications_; 123 size_t added_notifications_;
125 }; 124 };
126 125
127 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ 126 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698