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

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

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 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 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/macros.h"
14 #include "chrome/browser/notifications/notification.h" 15 #include "chrome/browser/notifications/notification.h"
15 #include "chrome/browser/notifications/notification_ui_manager.h" 16 #include "chrome/browser/notifications/notification_ui_manager.h"
16 17
17 class Profile; 18 class Profile;
18 19
19 // NotificationDelegate which does nothing, useful for testing when 20 // NotificationDelegate which does nothing, useful for testing when
20 // the notification events are not important. 21 // the notification events are not important.
21 class MockNotificationDelegate : public NotificationDelegate { 22 class MockNotificationDelegate : public NotificationDelegate {
22 public: 23 public:
23 explicit MockNotificationDelegate(const std::string& id); 24 explicit MockNotificationDelegate(const std::string& id);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 private: 67 private:
67 using NotificationPair = std::pair<Notification, ProfileID>; 68 using NotificationPair = std::pair<Notification, ProfileID>;
68 std::vector<NotificationPair> notifications_; 69 std::vector<NotificationPair> notifications_;
69 70
70 base::Closure notification_added_callback_; 71 base::Closure notification_added_callback_;
71 72
72 DISALLOW_COPY_AND_ASSIGN(StubNotificationUIManager); 73 DISALLOW_COPY_AND_ASSIGN(StubNotificationUIManager);
73 }; 74 };
74 75
75 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ 76 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_system_observer.h ('k') | chrome/browser/notifications/notification_ui_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698