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

Unified Diff: chrome/browser/notifications/stub_alert_dispatcher_mac.h

Issue 2479143003: Add tests for the XPC client. (Closed)
Patch Set: Created 4 years, 1 month 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/stub_alert_dispatcher_mac.h
diff --git a/chrome/browser/notifications/stub_alert_dispatcher_mac.h b/chrome/browser/notifications/stub_alert_dispatcher_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..13b6d64768c2fd6b8f70c56c20f8c58a6249bf76
--- /dev/null
+++ b/chrome/browser/notifications/stub_alert_dispatcher_mac.h
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_
+#define CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_
+
+#import <Foundation/Foundation.h>
+
+#import "chrome/browser/notifications/alert_dispatcher.h"
+
+@interface StubAlertDispatcher : NSObject<AlertDispatcher>
+
+- (void)dispatchNotification:(NSDictionary*)data;
+
+- (void)closeNotificationWithId:(NSString*)notificationId
+ withProfileId:(NSString*)profileId;
+
+- (void)closeAllNotifications;
+
+// stub specific methods
Robert Sesek 2016/11/07 17:51:18 nit: Comments should have proper capitalization an
Miguel Garcia 2016/11/10 12:46:52 Done.
+- (NSArray*)getAlerts;
+
+@end
+
+#endif // CHROME_BROWSER_NOTIFICATIONS_STUB_ALERT_DISPATCHER_

Powered by Google App Engine
This is Rietveld 408576698